1roledel(1M) System Administration Commands roledel(1M)
2
3
4
6 roledel - delete a role's login from the system
7
9 roledel [-r] role
10
11
13 The roledel utility deletes a role account from the system and makes
14 the appropriate account-related changes to the system file and file
15 system. roledel also removes the role from each user's list of assum‐
16 able roles.
17
19 The following options are supported:
20
21 -r Remove the role's home directory from the system. This directory
22 must exist. The files and directories under the home directory
23 will no longer be accessible following successful execution of
24 the command.
25
26
28 The following operands are supported:
29
30 role An existing role name to be deleted.
31
32
34 The following exit values are returned:
35
36 0 Successful completion.
37
38
39 2 Invalid command syntax. A usage message for the roledel command
40 is displayed.
41
42
43 6 The account to be removed does not exist.
44
45
46 8 The account to be removed is in use.
47
48
49 10 Cannot update the /etc/group or /etc/user_attr file but the login
50 is removed from the /etc/passwd file.
51
52
53 12 Cannot remove or otherwise modify the home directory.
54
55
57 /etc/passwd system password file
58
59
60 /etc/shadow system file containing roles' encrypted passwords and
61 related information
62
63
64 /etc/group system file containing group definitions
65
66
67 /etc/user_attr system file containing additional role attributes
68
69
71 See attributes(5) for descriptions of the following attributes:
72
73
74
75
76 ┌─────────────────────────────┬─────────────────────────────┐
77 │ATTRIBUTE TYPE │ATTRIBUTE VALUE │
78 ├─────────────────────────────┼─────────────────────────────┤
79 │Availability │SUNWcsu │
80 └─────────────────────────────┴─────────────────────────────┘
81
83 auths(1), passwd(1), profiles(1), roles(1), users(1B), groupadd(1M),
84 groupdel(1M), groupmod(1M), logins(1M), roleadd(1M), rolemod(1M), user‐
85 add(1M), userdel(1M), usermod(1M), passwd(4), prof_attr(4),
86 user_attr(4), attributes(5)
87
89 The roledel utility only deletes an account definition that is in the
90 local /etc/group, /etc/passwd, /etc/shadow, and /etc/user_attr file.
91 file. If a network name service such as NIS or NIS+ is being used to
92 supplement the local /etc/passwd file with additional entries, roledel
93 cannot change information supplied by the network name service.
94
95
96
97SunOS 5.11 8 Sep 1999 roledel(1M)