]> git.cameronkatri.com Git - pw-darwin.git/blob - adduser/rmuser.8
Sort cross references.
[pw-darwin.git] / adduser / rmuser.8
1 .\" Copyright 1995, 1996
2 .\" Guy Helmer, Madison, South Dakota 57042. All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
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.
15 .\"
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.
26 .\"
27 .\" $FreeBSD$
28 .\"
29 .Dd July 16, 1996
30 .Dt RMUSER 8
31 .Os
32 .Sh NAME
33 .Nm rmuser
34 .Nd remove users from the system
35 .Sh SYNOPSIS
36 .Nm rmuser
37 .Op Ar username
38 .Sh DESCRIPTION
39 The
40 .Nm rmuser
41 utility removes a user's
42 .Xr crontab 1
43 entry (if any) and any
44 .Xr at 1
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
50 .Pa /etc/group .
51 If a group becomes empty and the group name is the same as the username,
52 the group is removed (this complements
53 .Xr adduser 8 's
54 per-user unique groups).
55 .Pp
56 .Nm rmuser
57 politely refuses to remove users whose uid is 0 (typically root), since
58 it seemed like a good idea at the time
59 .Nm rmuser
60 was written.
61 .Pp
62 .Nm rmuser
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),
66 .Nm rmuser
67 asks whether you wish to remove the user's home directory and everything
68 below.
69 .Pp
70 Available options:
71 .Pp
72 .Bl -tag -width username
73 .It Ar \&username
74 Identifies the user to be removed; if not present,
75 .Nm rmuser
76 interactively asks for the user to be removed.
77 .Sh FILES
78 .Bl -tag -width /etc/master.passwd -compact
79 .It Pa /etc/master.passwd
80 .It Pa /etc/passwd
81 .It Pa /etc/group
82 .It Pa /etc/spwd.db
83 .It Pa /etc/pwd.db
84 .El
85 .Sh SEE ALSO
86 .Xr at 1 ,
87 .Xr chpass 1 ,
88 .Xr crontab 1 ,
89 .Xr finger 1 ,
90 .Xr passwd 1 ,
91 .Xr group 5 ,
92 .Xr passwd 5 ,
93 .Xr addgroup 8 ,
94 .Xr adduser 8 ,
95 .Xr pwd_mkdb 8 ,
96 .Xr rmgroup 8 ,
97 .Xr vipw 8
98 .Sh HISTORY
99 The
100 .Nm
101 command appeared in
102 .Fx 2.1.5 .
103 .\" .Sh AUTHOR
104 .\" Guy Helmer, Madison, South Dakota