Index: chapter.sgml =================================================================== RCS file: /dcvs/doc/en/books/handbook/users/chapter.sgml,v retrieving revision 1.3 diff -u -r1.3 chapter.sgml --- chapter.sgml 12 Jul 2006 04:01:00 -0000 1.3 +++ chapter.sgml 3 Sep 2006 16:34:45 -0000 @@ -391,13 +391,7 @@ the new user a welcome message. To create the initial configuration file, use - adduser -s -config_create. - - The makes &man.adduser.8; - default to - quiet. We use later when we want to - change defaults. - + adduser -C. Next, we configure &man.adduser.8; defaults, and create our first user account, since using root for normal usage is evil and @@ -407,57 +401,57 @@ Configuring <command>adduser</command> and adding a user - &prompt.root; adduser -v -Use option ``-silent'' if you don't want to see all warnings and questions. -Check /etc/shells -Check /etc/master.passwd -Check /etc/group -Enter your default shell: csh date no sh tcsh zsh [sh]: zsh -Your default shell is: zsh -> /usr/local/bin/zsh -Enter your default HOME partition: [/home]: -Copy dotfiles from: /usr/share/skel no [/usr/share/skel]: -Send message from file: /etc/adduser.message no -[/etc/adduser.message]: no -Do not send message -Use passwords (y/n) [y]: y - -Write your changes to /etc/adduser.conf? (y/n) [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_-]: jru -Enter full name []: J. Random User -Enter shell csh date no sh tcsh zsh [zsh]: -Enter home directory (full path) [/home/jru]: -Uid [1001]: -Enter login class: default []: -Login group jru [jru]: -Login group is ``jru''. Invite jru into other groups: guest no -[no]: wheel -Enter password []: -Enter password again []: - -Name: jru -Password: **** -Fullname: J. Random User -Uid: 1001 -Gid: 1001 (jru) -Class: -Groups: jru wheel -HOME: /home/jru -Shell: /usr/local/bin/zsh -OK? (y/n) [y]: y -Added user ``jru'' -Copy files from /usr/share/skel to /home/jru -Add another user? (y/n) [y]: n + &prompt.root; adduser -C +Login group []: +Enter additional groups []: +Login class [default]: +Shell (sh csh tcsh screen bash) [sh]: tcsh +Home directory [/home/]: +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]: +Pass Type : random +Class : +Groups : +Home : /home/ +Shell : /bin/tcsh +Locked : no +OK? (yes/no): yes +Re-edit the default configuration? (yes/no): no Goodbye! -&prompt.root; +&prompt.root; adduser +Username: jru +Full name: J. Random User +Uid (Leave empty for default): +Login group [jru]: +Login group is jru. Invite jru into other groups? []: wheel +Login class [default]: +Shell (sh csh tcsh screen bash) [tcsh]: +Home directory [/home/jru]: +Use password-based authentication? [yes]: +Use an empty password? (yes/no) [no]: +Use a random password? (yes/no) [yes]: +Lock out the account after creation? [no]: +Username : jru +Password : <random> +Full Name : J. Random User +Uid : 1002 +Class : +Groups : jru wheel +Home : /home/jru +Shell : /bin/tcsh +Locked : no +OK? (yes/no): yes +adduser: INFO: Successfully added (jru) to the user database. +adduser: INFO: Password for (jru) is: hhvBZ9.daTtxXr +Add another user? (yes/no): no +Goodbye! In summary, we changed the default shell to - zsh (an additional shell found in - &pkgsrc;), and turned off the sending of a welcome mail to - added users. We then saved the configuration, + tcsh, and turned on generating + random passwords for added users. We then saved the configuration, created an account for jru, and made sure jru is in wheel group (so that she may assume the role of @@ -474,7 +468,7 @@ Just use &man.adduser.8; without arguments from now on, and you will not have to go through changing the defaults. If the program asks you to change the defaults, - exit the program, and try the + exit the program, and try the option. @@ -546,17 +540,14 @@ <command>rmuser</command> Interactive Account Removal - &prompt.root; rmuser jru + &prompt.root; rmuser jru Matching password entry: -jru:*:1001:1001::0:0:J. Random User:/home/jru:/usr/local/bin/zsh -Is this the entry you wish to remove? y -Remove user's home directory (/home/jru)? y -Updating password file, updating databases, done. -Updating group file: trusted (removing group jru -- personal group is empty) done. -Removing user's incoming mail file /var/mail/jru: done. -Removing files belonging to jru from /tmp: done. -Removing files belonging to jru from /var/tmp: done. -Removing files belonging to jru from /var/tmp/vi.recover: done. + +jru:*:1002:1002::0:0:J. Random User:/home/jru:/bin/tcsh + +Is this the entry you wish to remove? yes +Remove user's home directory (/home/jru)? yes +Removing user (jru): mailspool home passwd. &prompt.root; @@ -585,13 +576,13 @@ #Changing user database information for jru. Login: jru Password: * -Uid [#]: 1001 -Gid [# or name]: 1001 +Uid [#]: 1002 +Gid [# or name]: 1002 Change [month day year]: Expire [month day year]: Class: Home directory: /home/jru -Shell: /usr/local/bin/zsh +Shell: /bin/tcsh Full Name: J. Random User Office Location: Office Phone: @@ -606,7 +597,7 @@ Interactive <command>chpass</command> by Normal User #Changing user database information for jru. -Shell: /usr/local/bin/zsh +Shell: /bin/tcsh Full Name: J. Random User Office Location: Office Phone: @@ -1039,7 +1030,8 @@ the group list by the system; the user will not show up as a member when using the command to &man.pw.8;, but will show up when the information is queried via &man.id.1; or - similar tool. In other words, &man.pw.8; only manipulates the + similar tool. In other words, &man.pw.8; group management only + manipulates the /etc/group file; it will never attempt to read additionally data from /etc/passwd. @@ -1047,7 +1039,7 @@ Using &man.id.1; to Determine Group Membership &prompt.user; id jru -uid=1001(jru) gid=1001(jru) groups=1001(jru), 1100(teamtwo) +uid=1002(jru) gid=1002(jru) groups=1002(jru), 1100(teamtwo) As you can see, jru is a member of the