Imported upstream version 1.5
[manpages-zh.git] / raw / man8 / userdel.8
blob6c3b75f90e0466a4cffcca488554be49ac75f645
1 .\" Copyright 1991 - 1994, Julianne Frances Haugh
2 .\" 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.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
13 .\"    may be used to endorse or promote products derived from this software
14 .\"    without specific prior written permission.
15 .\"
16 .\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED.  IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" SUCH DAMAGE.
27 .TH USERDEL 8
28 .SH NAME
29 userdel \- Delete a user account and related files
30 .SH SYNOPSIS
31 .B userdel
32 [\fB-r\fR]
33 .I login
34 .SH DESCRIPTION
35 The \fBuserdel\fR command modifies the system account files, deleting
36 all entries that refer to \fIlogin\fR.
37 The named user must exist.
38 The options which apply to the \fBuserdel\fR command are:
39 .IP \fB-r\fR
40 Files in the user's home directory will be removed along with the
41 home directory itself and the user's mail spool.
42 Files located in other file systems will have to be searched for
43 and deleted manually.
44 .SH FILES
45 /etc/passwd \- user account information
46 .br
47 /etc/shadow \- secure user account information
48 .br
49 /etc/group \- group information
50 .SH CAVEATS
51 \fBuserdel\fR will not allow you to remove an account if the user
52 is currently logged in.
53 You must kill any running processes which belong to an account that
54 you are deleting.
55 You may not remove any NIS attributes on an NIS client.
56 This must be performed on the NIS server.
57 .SH SEE ALSO
58 .BR chfn (1),
59 .BR chsh (1),
60 .BR passwd (1),
61 .BR groupadd (8),
62 .BR groupdel (8),
63 .BR groupmod (8),
64 .BR useradd (8),
65 .BR usermod (8)
66 .SH AUTHOR
67 Julianne Frances Haugh (jockgrrl@ix.netcom.com)