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

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1m/userdel.1m
          +++ new/usr/src/man/man1m/userdel.1m
↓ open down ↓ 2 lines elided ↑ open up ↑
   3    3  .\" Sun Microsystems, Inc.  All Rights Reserved
   4    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    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    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    7  .TH USERDEL 1M "Sep 8, 1999"
   8    8  .SH NAME
   9    9  userdel \- delete a user's login from the system
  10   10  .SH SYNOPSIS
  11   11  .LP
  12   12  .nf
  13      -\fBuserdel\fR [\fB-r\fR] \fIlogin\fR
       13 +\fBuserdel\fR [\fB-r\fR [\fB-z|-Z\fR]] \fIlogin\fR
  14   14  .fi
  15   15  
  16   16  .SH DESCRIPTION
  17      -.sp
  18   17  .LP
  19   18  The \fBuserdel\fR utility deletes a user account from the system and makes the
  20   19  appropriate account-related changes to the system file and file system.
  21   20  .SH OPTIONS
  22      -.sp
  23   21  .LP
  24   22  The following options are supported:
  25   23  .sp
  26   24  .ne 2
  27   25  .na
  28      -\fB\fB-r\fR\fR
       26 +\fB\fB-r\fR\fR [\fB-z|-Z\fR]
  29   27  .ad
  30   28  .RS 6n
  31   29  Remove the user's home directory from the system. This directory must exist.
  32   30  The files and directories under the home directory will no longer be accessible
  33   31  following successful execution of the command.
       32 +CHANGE_ZFS_FS option in /etc/default/useradd file determines if ZFS filesystem
       33 +underlying user home directory will be destroyed. If user's home directory is a
       34 +ZFS file system and CHANGE_ZFS_FS option is set to yes, the filesystem
       35 +will be destroyed. \fB-z\fR and \fB-Z\fR options allow overwrite default behavior.
       36 +If \fB-z\fR option is specified, \fBuserdel\fR tries to destroy file system.
       37 +If \fB-Z\fR option is specified, file system is not destroyed.
  34   38  .RE
  35   39  
  36   40  .SH OPERANDS
  37      -.sp
  38   41  .LP
  39   42  The following operands are supported:
  40   43  .sp
  41   44  .ne 2
  42   45  .na
  43   46  \fB\fB\fIlogin\fR\fR\fR
  44   47  .ad
  45   48  .RS 9n
  46   49  An existing login name to be deleted.
  47   50  .RE
  48   51  
  49   52  .SH EXIT STATUS
  50      -.sp
  51   53  .LP
  52   54  The following exit values are returned:
  53   55  .sp
  54   56  .ne 2
  55   57  .na
  56   58  \fB\fB0\fR\fR
  57   59  .ad
  58   60  .RS 6n
  59   61  Successful completion.
  60   62  .RE
↓ open down ↓ 39 lines elided ↑ open up ↑
 100  102  .sp
 101  103  .ne 2
 102  104  .na
 103  105  \fB\fB12\fR\fR
 104  106  .ad
 105  107  .RS 6n
 106  108  Cannot remove or otherwise modify the home directory.
 107  109  .RE
 108  110  
 109  111  .SH FILES
      112 +.ne 2
      113 +.na
      114 +\fB\fB/etc/default/useradd\fR\fR
      115 +.ad
      116 +.RS 18n
      117 +useradd, usermod and userdel configuration file
      118 +.RE
      119 +
 110  120  .sp
 111  121  .ne 2
 112  122  .na
 113  123  \fB\fB/etc/passwd\fR\fR
 114  124  .ad
 115  125  .RS 18n
 116  126  system password file
 117  127  .RE
 118  128  
 119  129  .sp
↓ open down ↓ 17 lines elided ↑ open up ↑
 137  147  .sp
 138  148  .ne 2
 139  149  .na
 140  150  \fB\fB/etc/user_attr\fR\fR
 141  151  .ad
 142  152  .RS 18n
 143  153  system file containing additional user attributes
 144  154  .RE
 145  155  
 146  156  .SH SEE ALSO
 147      -.sp
 148  157  .LP
 149  158  \fBauths\fR(1), \fBpasswd\fR(1), \fBprofiles\fR(1), \fBroles\fR(1),
 150  159  \fBusers\fR(1B), \fBgroupadd\fR(1M), \fBgroupdel\fR(1M), \fBgroupmod\fR(1M),
 151  160  \fBlogins\fR(1M), \fBroleadd\fR(1M), \fBrolemod\fR(1M), \fBuseradd\fR(1M),
 152  161  \fBuserdel\fR(1M), \fBusermod\fR(1M), \fBpasswd\fR(4), \fBprof_attr\fR(4),
 153  162  \fBuser_attr\fR(4), \fBattributes\fR(5)
 154  163  .SH NOTES
 155      -.sp
 156  164  .LP
 157  165  The \fBuserdel\fR utility only deletes an account definition that is in the
 158  166  local \fB/etc/group\fR, \fB/etc/passwd\fR, \fB/etc/shadow\fR, and
 159  167  \fB/etc/user_attr\fR file. file. If a network name service such as \fBNIS\fR or
 160  168  \fBNIS+\fR is being used to supplement the local \fB/etc/passwd\fR file with
 161  169  additional entries, \fBuserdel\fR cannot change information supplied by the
 162  170  network name service.
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX