This diff modifies the adduser.8 EXAMPLES section to be more inline with the 
rest of the man page.

1. Passwords typed on the command line should ideally be put through
   encrypt(1) (unless -unencrypted is used)

2. Welcome messages are not on by default now. Therefore must be explicity
   set with the -message option.

3. I've added a new example because I remember a user (a while back) having a
   problem working out how to give new accounts a login group of its username
   while just specifying one group with the -batch command, but not wanting
   that group to be the login group.

Any thoughts?

-mark

Index: adduser.8
===================================================================
RCS file: /cvs/src/usr.sbin/adduser/adduser.8,v
retrieving revision 1.39
diff -u -p -r1.39 adduser.8
--- adduser.8   31 May 2007 19:20:21 -0000      1.39
+++ adduser.8   2 May 2011 16:55:13 -0000
@@ -371,13 +371,13 @@ and
 Realname (fullname)
 is
 .Dq Prof. Falken .
-Password is
-.Dq joshua
-(don't use such a password!).
-Send user falken
-a welcome message:
+The password has been created using
+.Xr encrypt 1 :
 .Pp
-.Dl "# adduser -batch falken guest,staff,beer 'Prof. Falken' joshua"
+.Bd -literal -offset inedent
+# adduser -batch falken guest,staff,beer 'Prof. Falken' \e
+$2a$06$1Sdjxjoxg4cNmT6zAxriGOLgdLXQ3HdJ2dKBbzEk68jSrO1EtLJ3C
+.Ed
 .Pp
 Create user
 .Dq vehlefanz
@@ -385,9 +385,24 @@ in login group
 .Dq guest .
 Start the free UID search at 5000.
 No other groups, no realname, no password.
-Do not send a welcome message:
+Send a welcome message:
 .Pp
-.Dl "# adduser -uid_start 5000 -group guest -message no -batch vehlefanz"
+.Bd -literal -offset inedent
+# adduser -uid_start 5000 -group guest \e
+-message /etc/adduser.message -batch vehlefanz
+.Ed
+.Pp
+Create user
+.Dq jsmith
+and place into the
+.Dq jsmith
+login group.
+Also add to the
+.Dq staff
+group.
+No password:
+.Pp
+.Dl "# adduser -group USER -batch jsmith staff"
 .Sh SEE ALSO
 .Xr chpass 1 ,
 .Xr finger 1 ,

Reply via email to