while login as root in an aix server, i am changing the password of a user. However, when trying to login to the server from that user id, it shows password expired and You must change your password now and login again!
Please help.
The ADMCHG flag of password for an user directs the system to ask for password change on login. You can find this flag for an user's password in the file /etc/security/passwd
or with pwdadm
command.
Eg.
# grep -p "username:" /etc/security/passwd
username:
password = EvqNjMMwJzXnc
lastupdate = 1274003127
flags = ADMCHG
# pwdadm -q username
username:
lastupdate = 1274003127
flags = ADMCHG
Clear all the flags:
# pwdadm -c username
See also: Password expiry
I hope this helps.