Locking-user-account-in-freebsd

From FiberWiki

Jump to: navigation, search

Locking user account in FreeBSD

Locking user accounts in FreeBSD is simple. This can come in handy when an account needs suspended

  • Locking Account
pw lock <username>
  • Unlocking Account
pw unlock <username>
  • Examples

If a user account on the machine is named “john” then the following would lock and unlock the account

pw lock john
pw unlock john
Personal tools
Navigation