Unlock Locked User in HP-UX

modprpw command is used to modify protected password database. modprpw updates the user’s protected password database settings.  This command is available only to the superuser in a trusted system. Usage other than via SAM, and/or modifications out of sync with /etc/passwd or NIS+ tables, may result in serious database corruption and the inability to access the system.

1. Check whether user id is locked.

# /usr/lbin/getprpw <USER-ID>

Additional note:
• Check ‘alock‘ and ‘lockout‘ field. If the account is not locked you will see:
alock=NO lockout=0000000

• If an account is locked for any reason you will see a ‘1’ in the lockout field. For example:
lockout=00010000
means account is locked for exceeding unsuccessful login attempts.

2. Logon as superuser.

#  sudo su – 

3. Unlock user id

# /usr/lbin/modprpw -k <USER-ID>

You May Also Like

Leave a Reply?