|Front | Info | Lists | Newsfeeds | Study Guide | What is BSD?|
This is the BSDA Study Guide Book written via a wiki collaboration. This is a work in progress. You may contribute to or discuss this specific page at http://bsdwiki.reedmedia.net/wiki/Lock_a_user_account_or_reset_a_locked_user_account.html.
Lock a user account or reset a locked user account
Know how to recognize a locked account and how to remove the lock.
Locking an account is commonly accomplished by modifying the user's password field in the user database.
This can be done manually using
One FreeBSD and DragonFly, the
Or to unlock an account by the UID:
On NetBSD, the
And to unlock the account:
TODO: OpenBSD's version of NetBSD's usermod doesn't have this lock functionality; does OpenBSD have a tool for this? Or just do it manually?
TODO: locking accounts can also be done with password change time and expiration times. This could mention that briefly, but doesn't cover it.
TODO: point to section describing master.passwd format
vipw(8); chpass(1), pw(8), user(8)