1 .\" Copyright 1995, 1996
2 .\" Guy Helmer, Madison, South Dakota 57042. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer as
9 .\" the first lines of this file unmodified.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
13 .\" 3. The name of the author may not be used to endorse or promote products
14 .\" derived from this software without specific prior written permission.
16 .\" THIS SOFTWARE IS PROVIDED BY GUY HELMER ``AS IS'' AND ANY EXPRESS OR
17 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 .\" IN NO EVENT SHALL GUY HELMER BE LIABLE FOR ANY DIRECT, INDIRECT,
20 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 .Nd remove users from the system
41 utility removes a user's
43 entry (if any) and any
45 jobs belonging to the user,
46 then removes a user from the system's local password file, removes
47 the user's home directory if it is owned by the user, and removes
48 the user's incoming mail file if it exists. The username is removed
49 from any groups to which it belongs in the file
51 If a group becomes empty and the group name is the same as the username,
52 the group is removed (this complements
54 per-user unique groups).
57 politely refuses to remove users whose uid is 0 (typically root), since
58 it seemed like a good idea at the time
63 shows the selected user's password file entry and asks for confirmation
64 that you wish to remove the user. If the user's home directory is owned
65 by the user (and not by any other user),
67 asks whether you wish to remove the user's home directory and everything
72 .Bl -tag -width username
74 Identifies the user to be removed; if not present,
76 interactively asks for the user to be removed.
78 .Bl -tag -width /etc/master.passwd -compact
79 .It Pa /etc/master.passwd
104 .\" Guy Helmer, Madison, South Dakota