Print this page
293 useradd/del/mod should be ZFS-aware

*** 8,42 **** .SH NAME userdel \- delete a user's login from the system .SH SYNOPSIS .LP .nf ! \fBuserdel\fR [\fB-r\fR] \fIlogin\fR .fi .SH DESCRIPTION - .sp .LP The \fBuserdel\fR utility deletes a user account from the system and makes the appropriate account-related changes to the system file and file system. .SH OPTIONS - .sp .LP The following options are supported: .sp .ne 2 .na ! \fB\fB-r\fR\fR .ad .RS 6n Remove the user's home directory from the system. This directory must exist. The files and directories under the home directory will no longer be accessible following successful execution of the command. .RE .SH OPERANDS - .sp .LP The following operands are supported: .sp .ne 2 .na --- 8,45 ---- .SH NAME userdel \- delete a user's login from the system .SH SYNOPSIS .LP .nf ! \fBuserdel\fR [\fB-r\fR [\fB-z|-Z\fR]] \fIlogin\fR .fi .SH DESCRIPTION .LP The \fBuserdel\fR utility deletes a user account from the system and makes the appropriate account-related changes to the system file and file system. .SH OPTIONS .LP The following options are supported: .sp .ne 2 .na ! \fB\fB-r\fR\fR [\fB-z|-Z\fR] .ad .RS 6n Remove the user's home directory from the system. This directory must exist. The files and directories under the home directory will no longer be accessible following successful execution of the command. + CHANGE_ZFS_FS option in /etc/default/useradd file determines if ZFS filesystem + underlying user home directory will be destroyed. If user's home directory is a + ZFS file system and CHANGE_ZFS_FS option is set to yes, the filesystem + will be destroyed. \fB-z\fR and \fB-Z\fR options allow overwrite default behavior. + If \fB-z\fR option is specified, \fBuserdel\fR tries to destroy file system. + If \fB-Z\fR option is specified, file system is not destroyed. .RE .SH OPERANDS .LP The following operands are supported: .sp .ne 2 .na
*** 45,55 **** .RS 9n An existing login name to be deleted. .RE .SH EXIT STATUS - .sp .LP The following exit values are returned: .sp .ne 2 .na --- 48,57 ----
*** 105,114 **** --- 107,124 ---- .RS 6n Cannot remove or otherwise modify the home directory. .RE .SH FILES + .ne 2 + .na + \fB\fB/etc/default/useradd\fR\fR + .ad + .RS 18n + useradd, usermod and userdel configuration file + .RE + .sp .ne 2 .na \fB\fB/etc/passwd\fR\fR .ad
*** 142,160 **** .RS 18n system file containing additional user attributes .RE .SH SEE ALSO - .sp .LP \fBauths\fR(1), \fBpasswd\fR(1), \fBprofiles\fR(1), \fBroles\fR(1), \fBusers\fR(1B), \fBgroupadd\fR(1M), \fBgroupdel\fR(1M), \fBgroupmod\fR(1M), \fBlogins\fR(1M), \fBroleadd\fR(1M), \fBrolemod\fR(1M), \fBuseradd\fR(1M), \fBuserdel\fR(1M), \fBusermod\fR(1M), \fBpasswd\fR(4), \fBprof_attr\fR(4), \fBuser_attr\fR(4), \fBattributes\fR(5) .SH NOTES - .sp .LP The \fBuserdel\fR utility only deletes an account definition that is in the local \fB/etc/group\fR, \fB/etc/passwd\fR, \fB/etc/shadow\fR, and \fB/etc/user_attr\fR file. file. If a network name service such as \fBNIS\fR or \fBNIS+\fR is being used to supplement the local \fB/etc/passwd\fR file with --- 152,168 ----