To unlock a user account and refresh the password policy
>i=<account>
Below command will show about the current status of the account
/usr/lbin/getprpw $i
#-> /usr/lbin/getprpw $i
uid=26326, bootpw=NO, audid=503, audflg=0, mintm=1, maxpwln=-1, exptm=90, lftm=-1, spwchg=Wed Jan 9 08:43:09 2013, upwchg=-1, acctexp=-1, llog=-1, expwarn=14, usrpick=DFT, syspnpw=DFT, rstrpw=DFT, nullpw=NO, admnum=-1, syschpw=DFT, sysltpw=DFT, timeod=-1, slogint=Tue Jan 22 07:05:04 2013, ulogint=Mon Jan 21 06:41:15 2013, sloginy=-1, culogin=-1, uloginy=pts/1, umaxlntr=-1, alock=NO, lockout=0010000
To unlock a user account and refresh the password policy run below command
#/usr/lbin/modprpw -k -l $i; /usr/lbin/modprpw -v -l $i
No comments:
Post a Comment