FreeBSD locking an account

The pw utility is a command-line utility for the FreeBSD system user and group files, allowing the superuser an easy to use and standardized way of adding, modifying and removing users and groups. Same utility provides ability to locking or unlocking FreeBSD user accounts.

ADVERTISEMENTS

FreeBSD locking an account command

Syntax:
pw lock {username}

Example

Lock user account named vivek. Login as a root user and type following command:

# pw lock vivek

FreeBSD unlocking an account command

Syntax:
pw unlock {username}

Example

Unlock user account named vivek. Login as the root user and type the following command:

# pw unlock vivek

See also:

🐧 If you liked this page, please support my work on Patreon or with a donation.
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
1 comment… add one
  • Alexander Jun 10, 2010 @ 8:57

    Thks. It was Usefull.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.