.\"
.\" $FreeBSD$
.\"
-.Dd December 10, 2017
+.Dd February 8, 2019
.Dt PW 8
.Os
.Sh NAME
default determined from
.Pa /etc/pw.conf
- normally
-.Pa /home
+.Pa /var
with the account name as a subdirectory.
.It Fl e Ar date
Set the account's expiration date.
.It Fl b Ar dir
Set the root directory in which user home directories are created.
The default value for this is
-.Pa /home ,
+.Pa /var ,
but it may be set elsewhere as desired.
.It Fl e Ar days
Set the default account expiration period in days.
The login shell is set to
.Xr csh 1 .
A new home directory at
-.Pa /home/gsmith
+.Pa /var/gsmith
is created if it does not already exist.
Finally, a random password is generated and displayed:
.Bd -literal -offset indent
.Bd -literal -offset indent
pw userdel -n gsmith -r
.Ed
+.Pp
+Add the existing user jsmith to the wheel group,
+in addition to the other groups jsmith is already a member of.
+.Bd -literal -offset indent
+pw groupmod wheel -m jsmith
+.Ed
.Sh EXIT STATUS
The
.Nm