summaryrefslogtreecommitdiff
path: root/usr.sbin/adduser
diff options
context:
space:
mode:
authorlum <lum@cvs.openbsd.org>2011-05-10 16:49:08 +0000
committerlum <lum@cvs.openbsd.org>2011-05-10 16:49:08 +0000
commitd92cb5bf12b5e2b649ed581c33fa5c715a38760e (patch)
tree64821584d897e281b92296f48f3461537cdf1838 /usr.sbin/adduser
parent81a4dce6191d8e7e8a656e5957610a0cb8809423 (diff)
Update EXAMPLES to reflect current behaviour.
reviewed by jmc@
Diffstat (limited to 'usr.sbin/adduser')
-rw-r--r--usr.sbin/adduser/adduser.835
1 files changed, 25 insertions, 10 deletions
diff --git a/usr.sbin/adduser/adduser.8 b/usr.sbin/adduser/adduser.8
index 491b55e5b59..3858b4e52db 100644
--- a/usr.sbin/adduser/adduser.8
+++ b/usr.sbin/adduser/adduser.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: adduser.8,v 1.39 2007/05/31 19:20:21 jmc Exp $
+.\" $OpenBSD: adduser.8,v 1.40 2011/05/10 16:49:07 lum Exp $
.\"
.\" Copyright (c) 1995-1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
.\" All rights reserved.
@@ -25,7 +25,7 @@
.\" SUCH DAMAGE.
.\"
.\" $From: adduser.8,v 1.12 1996/08/28 17:54:13 adam Exp $
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: May 10 2011 $
.Dt ADDUSER 8
.Os
.Sh NAME
@@ -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 in 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 ,