summaryrefslogtreecommitdiff
path: root/usr.sbin/pw
diff options
context:
space:
mode:
authorWarren Block <wblock@FreeBSD.org>2016-04-23 22:57:54 +0000
committerWarren Block <wblock@FreeBSD.org>2016-04-23 22:57:54 +0000
commit9b8a603ef07e98a7e37edc9495217cc21a647e70 (patch)
tree54af8ccd0f7d99411faed54ce3e3b388e8c8db7b /usr.sbin/pw
parent4209de56bb4afa1065b23fe562af1a377deac3d0 (diff)
Notes
Diffstat (limited to 'usr.sbin/pw')
-rw-r--r--usr.sbin/pw/pw.814
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.sbin/pw/pw.8 b/usr.sbin/pw/pw.8
index 84ceda3a879ae..4cf52b6c21f68 100644
--- a/usr.sbin/pw/pw.8
+++ b/usr.sbin/pw/pw.8
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd March 27, 2016
+.Dd April 23, 2016
.Dt PW 8
.Os
.Sh NAME
@@ -954,6 +954,18 @@ Pw default options file
.It Pa /var/log/userlog
User/group modification logfile
.El
+.Sh EXAMPLES
+Add new user Glurmo Smith (gsmith).
+A gsmith login group is created if not already present.
+The login shell is set to
+.Xr csh 1 .
+A new home directory at
+.Pa /home/gsmith
+is created if it does not already exist.
+Finally, a random password is generated and displayed:
+.Bd -literal -offset indent
+pw useradd -n gsmith -c "Glurmo Smith" -s /bin/csh -m -w random
+.Ed
.Sh EXIT STATUS
The
.Nm