Tool-BarfreeBSD ArticlesSearch Our SiteHOMEfreeBSD LinksContribute to FreeBSD HelpFreeBSD FilesFreeBSD Script Corner

Adding a New User to your FreeBSD Server

For those users who just can't seem to figure out how to add users to there unix box, this acticle will show you the information that you need to use. Below is a example of a adduser  command, that we used to setup a new user called John Smith.

sr-71# adduser
Use option ``-silent'' if you don't want see all warnings & questions.

Check /etc/shells
Check /etc/master.passwd
Check /etc/group
Enter your default shell: csh date no sh [csh]:
Your default shell is: csh -> /bin/csh
Enter your default HOME partition: [/usr/home]:
Copy dotfiles from: /usr/share/skel no [/usr/share/skel]:
Send message from file: /etc/adduser.message no [no]:
Do not send message
Use passwords (y/n) [y]:

Ok, let's go.
Don't worry about mistakes. I will give you the chance later to correct any input.
Enter username [a-z0-9_-]: john
Enter full name []: John Smith
Enter shell csh date no sh [csh]:
Enter home directory (full path) [/usr/home/john]:
Uid [1009]:
Enter login class: default []:
Login group john [john]:
Login group is ``john''. Invite john into other groups: guest no
Enter password []:
Enter password again []:

Name:   john
Password: ****
Fullname: John Smith
Uid:   1009
Gid:   1009 (john)
Groups:  john
HOME:   /usr/home/john
Shell:  /bin/csh
OK? (y/n) [y]:
Added user ``john''
Copy files from /usr/share/skel to /usr/home/john
Add another user? (y/n) [y]:

© 1997 - 20013 Defcon1, , Copyrights for all materials on this web site are held by the individual authors, artists, photographers or creators. Materials may not be reproduced or otherwise distributed without permission of and the content's original author.

Tool-Bar-2Defcon1  Webmail