PC-BSD Quick Guide


Adding new users

The two ways to add a new user to your system is by using the "User Manager" program or the adduser script. User manager is a graphical program and easy to use with the mouse. adduser is a very flexible command line method.

Open the Start Menu and go to "Settings > Security & Privacy > User Manager". Here you can add, remove, and lock users, change the super users (system) password. To add a new user you will need to have a user name and password, you may also input the full name of the user for reference.

User Manager

To add a new user with adduser open a konsole in super user mode and run adduser. Here is an example of running the adduser script, the options listed in side brackets are the default used when merely pressing "Enter" to continue:

# adduser
Username: john
Full name: John Smith
Uid (Leave empty for default):
Login group [john]: wheel
Login group is wheel. Invite john into other groups? []: operator
Login class [default]:
Shell (sh csh tcsh bash nologin) [sh]: bash
Home directory [/home/john]:
Use password-based authentication? [yes]: yes
Use an empty password? (yes/no) [no]: no
Use a random password? (yes/no) [no]: no
Enter password:
Enter password again:
Lock out the account after creation? [no]: no
Username   : john
Password   : *****
Full Name  : John Smith
Uid        : 1002
Class      :
Groups     : wheel operator
Home       : /home/john
Shell      : /usr/local/bin/bash
Locked     : no
OK? (yes/no):

Here we have added a new user named "john" to the groups wheel and operator giving him greater access to hardware and the ability to switch user to root, that is run programs as the super user. The choice of shells include the Bourne Shell (sh), C Shell (csh) and the Bourne Again Shell (bash). More shells can be installed using PBI, Ports, or Packages. You should only add users to the wheel or operator groups that you want to have administrator access to the machine. Some one who you do not want to have the ability to switch to the super user should not be in the wheel group!

An example of someone you would give the super user password to, and give wheel membership, is someone you trust to be able to add programs and hardware to the system. An example of someone who should not be in the wheel group is a child you may not want to be able to modify important files, or install software.


Index