Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-04-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 270

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report