How to Add a User on FreeBSD

By | 2013/10/27

Here is how to add a user on FreeBSD!


To create a user in FreeBSD, use the adduser command. Here is an example:

scottlinux# adduser
Username: stmiller
Full name: 
Uid (Leave empty for default): 
Login group [stmiller]: 
Login group is stmiller. Invite stmiller into other groups? []: wheel
Login class [default]: 
Shell (sh csh tcsh zsh rzsh nologin) [sh]: zsh
Home directory [/home/stmiller]: 
Home directory permissions (Leave empty for default): 
Use password-based authentication? [yes]: 
Use an empty password? (yes/no) [no]: 
Use a random password? (yes/no) [no]: 
Enter password: 
Enter password again: 
Lock out the account after creation? [no]: 
Username   : stmiller
Password   : *****
Full Name  : 
Uid        : 1001
Class      : 
Groups     : stmiller wheel
Home       : /home/stmiller
Home Mode  : 
Shell      : /usr/local/bin/zsh
Locked     : no
OK? (yes/no): yes
adduser: INFO: Successfully added (stmiller) to the user database.
Add another user? (yes/no): no
Goodbye!
scottlinux#