Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the solution to the non-reuse and expiration of AIX account passwords

Shulou Source: shulou.com Published: 2022-05-31 21:59:34 10月03日 Update

AIX account password can not be reused and expired what is the solution, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

The account of a production machine needs to set a password that has been used before, and an error message is reported as follows:

$passwd sun007

Changing password for "sun007"

Sun007's Old password:

Sun007's New password:

3004-314 Password was recently used and is not valid for reuse.

Sun007's New password:

3004-314 Password was recently used and is not valid for reuse.

So how to solve this problem?

We can try the following ways:

1 、 # smit chuser

Then modify the value of number of passwords before reuse to 0

Then exit after a successful execution.

(chsec-f / etc/security/lastlog-s sun007-a unsuccessful_login_count=0) unlock

2. It can also be so.

# pwdadm-c sun007 # clear the password flag of the account

# passwd sun007

Just do it.

Add:

Two files with expired account password

/ etc/security/user expires=0 maxage=0

Sun007:

Admin = false

Histsize = 0

Maxage = 0 account password never expires

/ etc/security/passwd lastupdate=1120130930 # localtime (1120130930)

Sun007:

Password = oBQaUkPkUryCY

Lastupdate = 1243972006

Flags = ADMCHG

If the password has expired, such as

$su-epmuser

Epmuser's Password:

[compat]: 3004-332 Your password has expired.

Epmuser's New password:

Allows you to reset the new password, if you do not want to reset the new password, but also want to use the previous password

You can use ROOT to clear the password flag of epmuser.

Root@kmapp02/: > pwdadm-c epmuser

If you use passwd to reset your password, you still want to use the old one. You can set it to another password. When you log in with epmuser, you can reset the password again and set it to the previous password.

Strengthen security

# pwdadm-f ADMIN sun007 # only allows administrators to update passwords

# su-sun007

$passwd sun007

Changing password for "sun007"

3004-664 You are not authorized to change sun007's password.

3004-709 Error changing password for "sun007": You do not have permission.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Password account clarity logo for new secret help method security success lifetime two information content method security for this file article novice Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi NVidia Linux Docker Microsoft