Wednesday, September 29, 2010

Command to “unexpire” password on AIX

Once a password has been expired, you could reset the password.

To “unexpire” a password without setting a new one, this would do it.

chsec -f /etc/security/passwd -s username -a lastupdate=`perl -e 'print time'`

To set password to be unexpired for a user id, this would do it.

chuser maxage=0 username

No comments:

Post a Comment