[Home]    [FBSD Articles]    [Scripts Corner]    [Contribute]    [Search]    [FBSD Links]    [Files]

About Us

FreeBSD Articles
  *X Windows

Files / Scripts
Newbies Corner
Tech. Talk
Tips and Tricks

FreeBSD Links

Articles in other
Languages :
  *French Articles
  *Spanish Articles

Want to Help ?
   Click Here

Email Users 5



FreeBSD Search:




Adding a New User

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]:

Written By: GhostRdr

Email Us

This site cannot be duplicated without permission

© 1998 - 2010 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.