To lock a unix account


passwd -l $username - how to lock account

passwd -u $username - how to unlock an account

passwd -s $username - to check if account is locked (look for LK)


Do not enter the $, just type the username.