This short article treats about locked account in HP-UX systems and provide explanation how to unlock account.
HP UX – Unlock account procedure
1) First check the reason of locked account. To do it we use getprpw command. The getprpw is responsible for obtaining and displaying information from protected password database.
[regmen@uxsys]/home/regmen>sudo /usr/lbin/getprpw -l regmen
uid=1004567, bootpw=NO, audid=144, audflg=1, mintm=-1, maxpwln=-1, exptm=-1, lftm=-1, spwchg=Fri Oct 23 10:26:36 2015, upwchg=Fri Oct 23 10:26:17 2015, acctexp=-1, llog=-1, expwarn=-1, usrpick=DFT, syspnpw=DFT, rstrpw=DFT, nullpw=DFT, admnum=-1, syschpw=DFT, sysltpw=DFT, timeod=-1, slogint=Mon Sep 28 14:36:32 2015, ulogint=Fri Oct 23 10:26:52 2015, sloginy=-1, culogin=9, uloginy=-1, umaxlntr=-1, alock=NO, lockout=0001000
According to MAN pages for getprpw we have got explanation about lockout argument.
returns the reason for a lockout in a "bit" valued string,
where 0 = condition not present, 1 is present.
The position, left to right represents:
1 past password lifetime
2 past last login time (inactive account)
3 past absolute account lifetime
4 exceeded unsuccessful login attempts
5 password required and a null password
6 admin lock
7 password is a *
As you can see argument lockout has a bit valued string. In discussed case it is 0001000, where 1 means that condition for that value is present. Reading from left to right we have bit 4th which means exceeded unsuccessful login attempts.