Linux Tips: Locking/Unlocking user accounts October 13, 2004 Emre 1 Comment To lock an account: # passwd -l username To unlock it: # passwd -u username