adding a system user in freebsd

From WebHostingNeeds.com
Jump to: navigation, search

To add a system user in FreeBSD, use the command adduser.

server16# adduser
Username: backup
Full name: Yujin Boby
Uid (Leave empty for default):
Login group [backup]:
Login group is backup. Invite backup into other groups? []:
Login class [default]:
Shell (sh csh tcsh nologin) [sh]:
Home directory [/home/backup]:
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   : backup
Password   : *****
Full Name  : Yujin Boby
Uid        : 1004
Class      :
Groups     : backup
Home       : /home/backup
Shell      : /bin/sh
Locked     : no
OK? (yes/no): yes
adduser: INFO: Successfully added (backup) to the user database.
Add another user? (yes/no): no
Goodbye!
server16#