Sunday, September 11, 2011

How to disable first time password change in AIX

I'm new to AIX. Getting sick of AIX asking users for new password when you log in to the server for the first time ever after the setting the password using root. After some digging, this is due to the ADMCHD flag in /etc/security/password like below.

ahkow:
        password = Qpkm8APaNsdoI
        lastupdate = 1227154518
        flags = ADMCHG
Clear the ADMCHG flag of the user account with "pwdadm -c ".
> pwdadm -c ahkow
now the flag is gone.
ahkow:
        password = Qpkm8APaNsdoI
        lastupdate = 1227154518

No comments: