9086 account administration manpages need some tlc
[unleashed.git] / usr / src / man / man1m / roledel.1m
blobe14805a55b990d625f20922c2180f5f29075537d
1 '\" te
2 .\" Copyright 1989 AT&T  Copyright (c) 1999, Sun Microsystems, Inc.  All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH ROLEDEL 1M "Jan 7, 2018"
7 .SH NAME
8 roledel \- delete a role's login from the system
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBroledel\fR [\fB-r\fR] \fIrole\fR
13 .fi
15 .SH DESCRIPTION
16 .LP
17 The \fBroledel\fR utility deletes a role account from the system and makes the
18 appropriate account-related changes to the system file and file system.
19 \fBroledel\fR also removes the role from each user's list of assumable roles.
20 .SH OPTIONS
21 .LP
22 The following options are supported:
23 .sp
24 .ne 2
25 .na
26 \fB\fB-r\fR\fR
27 .ad
28 .RS 6n
29 Remove the role's home directory from the system. This directory must exist.
30 The files and directories under the home directory will no longer be accessible
31 following successful execution of the command.
32 .sp
33 If the role's home directory is located on a separate \fBZFS\fR file system and
34 the \fB/etc/default/useradd\fR file contains the parameter \fBMANAGE_ZFS\fR set
35 to the value \fBYES\fR, the file system will be destroyed.
36 .RE
38 .SH OPERANDS
39 .LP
40 The following operands are supported:
41 .sp
42 .ne 2
43 .na
44 \fB\fIrole\fR\fR
45 .ad
46 .RS 8n
47 An existing role name to be deleted.
48 .RE
50 .SH EXIT STATUS
51 .LP
52 The following exit values are returned:
53 .sp
54 .ne 2
55 .na
56 \fB\fB0\fR\fR
57 .ad
58 .RS 6n
59 Successful completion.
60 .RE
62 .sp
63 .ne 2
64 .na
65 \fB\fB2\fR\fR
66 .ad
67 .RS 6n
68 Invalid command syntax. A usage message for the \fBroledel\fR command is
69 displayed.
70 .RE
72 .sp
73 .ne 2
74 .na
75 \fB\fB6\fR\fR
76 .ad
77 .RS 6n
78 The account to be removed does not exist.
79 .RE
81 .sp
82 .ne 2
83 .na
84 \fB\fB8\fR\fR
85 .ad
86 .RS 6n
87 The account to be removed is in use.
88 .RE
90 .sp
91 .ne 2
92 .na
93 \fB\fB10\fR\fR
94 .ad
95 .RS 6n
96 Cannot update the \fB/etc/group\fR or \fB/etc/user_attr\fR file but the login
97 is removed from the \fB/etc/passwd\fR file.
98 .RE
101 .ne 2
103 \fB\fB12\fR\fR
105 .RS 6n
106 Cannot remove or otherwise modify the home directory.
109 .SH FILES
110 .ne 2
112 \fB\fB/etc/default/useradd\fR\fR
114 .RS 18n
115 configuration file for user and role administrative commands
119 .ne 2
121 \fB\fB/etc/passwd\fR\fR
123 .RS 18n
124 system password file
128 .ne 2
130 \fB\fB/etc/shadow\fR\fR
132 .RS 18n
133 system file containing roles' encrypted passwords and related information
137 .ne 2
139 \fB\fB/etc/group\fR\fR
141 .RS 18n
142 system file containing group definitions
146 .ne 2
148 \fB\fB/etc/user_attr\fR\fR
150 .RS 18n
151 system file containing additional role attributes
154 .SH SEE ALSO
156 \fBauths\fR(1), \fBpasswd\fR(1), \fBprofiles\fR(1), \fBroles\fR(1),
157 \fBgroupadd\fR(1M), \fBgroupdel\fR(1M), \fBgroupmod\fR(1M),
158 \fBlogins\fR(1M), \fBroleadd\fR(1M), \fBrolemod\fR(1M), \fBuseradd\fR(1M),
159 \fBuserdel\fR(1M), \fBusermod\fR(1M), \fBzfs\fR(1M), \fBpasswd\fR(4),
160 \fBprof_attr\fR(4), \fBuser_attr\fR(4), \fBattributes\fR(5)
161 .SH NOTES
163 The \fBroledel\fR utility only deletes an account definition that is in the
164 local \fB/etc/group\fR, \fB/etc/passwd\fR, \fB/etc/shadow\fR, and
165 \fB/etc/user_attr\fR file. file. If a network name service
166 is being used to supplement the local \fB/etc/passwd\fR file with
167 additional entries, \fBroledel\fR cannot change information supplied by the
168 network name service.