diff options
author | wblock <wblock@FreeBSD.org> | 2016-04-23 22:57:54 +0000 |
---|---|---|
committer | wblock <wblock@FreeBSD.org> | 2016-04-23 22:57:54 +0000 |
commit | bb0d234bf32ea8365b04ff4bd25a5ac6fe63bb39 (patch) | |
tree | 54af8ccd0f7d99411faed54ce3e3b388e8c8db7b | |
parent | 164f11e22e8d6a778c3de867facdd258d3f99b6a (diff) | |
download | FreeBSD-src-bb0d234bf32ea8365b04ff4bd25a5ac6fe63bb39.zip FreeBSD-src-bb0d234bf32ea8365b04ff4bd25a5ac6fe63bb39.tar.gz |
Add a single example of adding a user that roughly corresponds with the
adduser example in the Handbook.
MFC after: 1 week
-rw-r--r-- | usr.sbin/pw/pw.8 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.sbin/pw/pw.8 b/usr.sbin/pw/pw.8 index 84ceda3..4cf52b6 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 |