22.4 Locking an Account

To lock a user's account, enter:

# passwd -l username

To unlock the account:

# passwd -u username

For more information, see the passwd(1) manual page.