Penguin
Annotated edit history of userdel(8) version 2, including all changes. View license author blame.
Rev Author # Line
1 perry 1 USERDEL
2 !!!USERDEL
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 FILES
7 EXIT VALUES
8 CAVEATS
9 SEE ALSO
10 AUTHOR
11 ----
12 !!NAME
13
14
15 userdel - Delete a user account and related files
16 !!SYNOPSIS
17
18
19 __userdel__ [[__-r__] ''login''
20 !!DESCRIPTION
21
22
23 The __userdel__ command modifies the system account
24 files, deleting all entries that refer to ''login''. If
25 __USERGROUPS_ENAB__ is set to yes in
26 __/etc/login.defs__, then __userdel__ will also remove
27 entries in __/etc/group__ that refer to ''login'' if,
28 and only if, there are no members of that group listed, or
29 the only member is ''login''. The named user must
30 exist.
31
32
33 __-r__
34
35
36 Files in the user's home directory will be removed along
37 with the home directory itself and the user's mail spool.
38 Files located in other file systems will have to be searched
39 for and deleted manually.
40 !!FILES
41
42
43 /etc/passwd - user account information
44 /etc/shadow - secure user account information
45 /etc/group - group information
46 /etc/login.defs - login configuration file
47 !!EXIT VALUES
48
49
50 0 - success
51 1 - can't update password file
52 2 - bad command syntax
53 6 - specified user doesn't exist
54 8 - user currently logged in
55 10 - can't update group file
56 12 - can't remove home directory
57 !!CAVEATS
58
59
60 __userdel__ will not allow you to remove an account if
61 the user is currently logged in. You must kill any running
62 processes which belong to an account that you are deleting.
63 You may not remove any NIS attributes on an NIS client. This
64 must be performed on the NIS server.
65 !!SEE ALSO
66
67
68 chfn(1), chsh(1), groupadd(8),
69 groupdel(8), groupmod(8), passwd(1),
70 useradd(8), usermod(8),
2 perry 71 login.defs(5)
1 perry 72 !!AUTHOR
73
74
75 Julianne Frances Haugh (jfh@austin.ibm.com)
76 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.