1userdel(1M)             System Administration Commands             userdel(1M)
2
3
4

NAME

6       userdel - delete a user's login from the system
7

SYNOPSIS

9       userdel [-r] login
10
11

DESCRIPTION

13       The  userdel  utility  deletes a user account from the system and makes
14       the appropriate account-related changes to the  system  file  and  file
15       system.
16

OPTIONS

18       The following options are supported:
19
20       -r    Remove  the user's home directory from the system. This directory
21             must exist. The files and directories under  the  home  directory
22             will  no  longer  be accessible following successful execution of
23             the command.
24
25

OPERANDS

27       The following operands are supported:
28
29       login    An existing login name to be deleted.
30
31

EXIT STATUS

33       The following exit values are returned:
34
35       0     Successful completion.
36
37
38       2     Invalid command syntax. A usage message for the  userdel  command
39             is displayed.
40
41
42       6     The account to be removed does not exist.
43
44
45       8     The account to be removed is in use.
46
47
48       10    Cannot update the /etc/group or /etc/user_attr file but the login
49             is removed from the /etc/passwd file.
50
51
52       12    Cannot remove or otherwise modify the home directory.
53
54

FILES

56       /etc/passwd       system password file
57
58
59       /etc/shadow       system file contain users'  encrypted  passwords  and
60                         related information
61
62
63       /etc/group        system file containing group definitions
64
65
66       /etc/user_attr    system file containing additional user attributes
67
68

ATTRIBUTES

70       See attributes(5) for descriptions of the following attributes:
71
72
73
74
75       ┌─────────────────────────────┬─────────────────────────────┐
76       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
77       ├─────────────────────────────┼─────────────────────────────┤
78       │Availability                 │SUNWcsu                      │
79       └─────────────────────────────┴─────────────────────────────┘
80

SEE ALSO

82       auths(1),  passwd(1),  profiles(1),  roles(1), users(1B), groupadd(1M),
83       groupdel(1M), groupmod(1M), logins(1M), roleadd(1M), rolemod(1M), user‐
84       add(1M),    userdel(1M),    usermod(1M),    passwd(4),    prof_attr(4),
85       user_attr(4), attributes(5)
86

NOTES

88       The userdel utility only deletes an account definition that is  in  the
89       local  /etc/group,  /etc/passwd,  /etc/shadow, and /etc/user_attr file.
90       file. If a network name service such as NIS or NIS+ is  being  used  to
91       supplement  the local /etc/passwd file with additional entries, userdel
92       cannot change information supplied by the network name service.
93
94
95
96SunOS 5.11                        8 Sep 1999                       userdel(1M)
Impressum