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 [no]: Enter password []: Enter password again []:
Name: john Password: **** Fullname: John Smith Uid: 1009 Gid: 1009 (john) Class: 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]:
|