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

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man1m/userdel.1m.man.txt
          +++ new/usr/src/man/man1m/userdel.1m.man.txt
   1    1  USERDEL(1M)                  Maintenance Commands                  USERDEL(1M)
   2    2  
   3    3  
   4    4  
   5    5  NAME
   6    6         userdel - delete a user's login from the system
   7    7  
   8    8  SYNOPSIS
   9      -       userdel [-r] login
        9 +       userdel [-r [-z|-Z]] login
  10   10  
  11   11  
  12   12  DESCRIPTION
  13   13         The userdel utility deletes a user account from the system and makes
  14   14         the appropriate account-related changes to the system file and file
  15   15         system.
  16   16  
  17   17  OPTIONS
  18   18         The following options are supported:
  19   19  
  20      -       -r
       20 +       -r [-z|-Z]
  21   21               Remove the user's home directory from the system. This directory
  22   22               must exist.  The files and directories under the home directory
  23   23               will no longer be accessible following successful execution of
  24      -             the command.
       24 +             the command.  CHANGE_ZFS_FS option in /etc/default/useradd file
       25 +             determines if ZFS filesystem underlying user home directory will
       26 +             be destroyed. If user's home directory is a ZFS file system and
       27 +             CHANGE_ZFS_FS option is set to yes, the filesystem will be
       28 +             destroyed. -z and -Z options allow overwrite default behavior.
       29 +             If -z option is specified, userdel tries to destroy file system.
       30 +             If -Z option is specified, file system is not destroyed.
  25   31  
  26   32  
  27   33  OPERANDS
  28   34         The following operands are supported:
  29   35  
  30   36         login
  31   37                  An existing login name to be deleted.
  32   38  
  33   39  
  34   40  EXIT STATUS
↓ open down ↓ 19 lines elided ↑ open up ↑
  54   60         10
  55   61               Cannot update the /etc/group or /etc/user_attr file but the login
  56   62               is removed from the /etc/passwd file.
  57   63  
  58   64  
  59   65         12
  60   66               Cannot remove or otherwise modify the home directory.
  61   67  
  62   68  
  63   69  FILES
       70 +       /etc/default/useradd
       71 +                         useradd, usermod and userdel configuration file
       72 +
       73 +
  64   74         /etc/passwd
  65   75                           system password file
  66   76  
  67   77  
  68   78         /etc/shadow
  69   79                           system file contain users' encrypted passwords and
  70   80                           related information
  71   81  
  72   82  
  73   83         /etc/group
↓ open down ↓ 23 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX