2 .\" Copyright 1989 AT&T Copyright (c) 1999,
3 .\" Sun Microsystems, Inc. All Rights Reserved
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH USERDEL 1M "Feb 25, 2017"
9 userdel \- delete a user's login from the system
13 \fBuserdel\fR [\fB-r\fR] \fIlogin\fR
18 The \fBuserdel\fR utility deletes a user account from the system and makes the
19 appropriate account-related changes to the system file and file system.
22 The following options are supported:
29 Remove the user'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.
33 If the user'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.
40 The following operands are supported:
44 \fB\fB\fIlogin\fR\fR\fR
47 An existing login name to be deleted.
52 The following exit values are returned:
59 Successful completion.
68 Invalid command syntax. A usage message for the \fBuserdel\fR command is
78 The account to be removed does not exist.
87 The account to be removed is in use.
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.
106 Cannot remove or otherwise modify the home directory.
112 \fB\fB/etc/default/useradd\fR\fR
115 useradd, usermod and userdel configuration file
121 \fB\fB/etc/passwd\fR\fR
130 \fB\fB/etc/shadow\fR\fR
133 system file contain users' encrypted passwords and related information
139 \fB\fB/etc/group\fR\fR
142 system file containing group definitions
148 \fB\fB/etc/user_attr\fR\fR
151 system file containing additional user attributes
156 \fBauths\fR(1), \fBpasswd\fR(1), \fBprofiles\fR(1), \fBroles\fR(1),
157 \fBusers\fR(1B), \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), \fBpasswd\fR(4), \fBprof_attr\fR(4),
160 \fBuser_attr\fR(4), \fBattributes\fR(5), \fBzfs\fR(1M)
163 The \fBuserdel\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, \fBuserdel\fR cannot change information supplied by the
168 network name service.