Creating a User in FreeBSD

You can create a new user with adduser command in FreeBSD.
Here is how i created a user “backup” for remote FTP Backup.
server128# adduser
Username: backup
Full name: Backup Account
Uid (Leave empty for default):
Login group [backup]:
Login group is backup. Invite backup into other groups? []:
Login class [default]:
Shell (sh csh tcsh bash bash jailshell noshell ftpsh nologin) [sh]: nologin
Home directory [/home/backup]:
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]: yes
Lock out the account after creation? [no]:
Username   : backup
Password   :
Full Name  : Backup Account
Uid        : 1551
Class      :
Groups     : backup
Home       : /home/backup
Shell      : /usr/sbin/nologin
Locked     : no
OK? (yes/no): yes
adduser: INFO: Successfully added (backup) to the user database.
adduser: INFO: Password for (backup) is: SDkf.noltM
Add another user? (yes/no): no

Posted in Uncategorized. Bookmark the permalink.