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


  18  *
  19  * CDDL HEADER END
  20  */
  21 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  22 /*        All Rights Reserved   */
  23 
  24 
  25 /*
  26  * Copyright (c) 2013 Gary Mills
  27  *
  28  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  29  * Use is subject to license terms.
  30  */
  31 
  32 char *errmsgs[] = {
  33         "WARNING: uid %ld is reserved.\n",
  34         "WARNING: more than NGROUPS_MAX(%d) groups specified.\n",
  35         "ERROR: invalid syntax.\n"
  36             "usage:  useradd [-u uid [-o] | -g group | -G group[[,group]...] |"
  37             "-d dir | -b base_dir |\n"
  38             "\t\t-s shell | -c comment | -m [-k skel_dir] | -f inactive |\n"

  39             "\t\t-e expire | -A authorization [, authorization ...] |\n"
  40             "\t\t-P profile [, profile ...] | -R role [, role ...] |\n"
  41             "\t\t-K key=value | -p project [, project ...]] login\n"
  42             "\tuseradd -D [-g group | -b base_dir | -f inactive | -e expire\n"
  43             "\t\t-A authorization [, authorization ...] |\n"
  44             "\t\t-P profile [, profile ...] | -R role [, role ...] |\n"
  45             "\t\t-K key=value ... -p project] | [-s shell] | [-k skel_dir]\n",
  46         "ERROR: Invalid syntax.\nusage:  userdel [-r] login\n",
  47         "ERROR: Invalid syntax.\n"
  48             "usage:  usermod -u uid [-o] | -g group | -G group[[,group]...] |\n"
  49             "\t\t-d dir [-m] | -s shell | -c comment |\n"
  50             "\t\t-l new_logname | -f inactive | -e expire |\n"
  51             "\t\t-A authorization [, authorization ...] | -K key=value ... |\n"
  52             "\t\t-P profile [, profile ...] | -R role [, role ...] login\n",
  53         "ERROR: Unexpected failure.  Defaults unchanged.\n",
  54         "ERROR: Unable to remove files from home directory.\n",
  55         "ERROR: Unable to remove home directory.\n",
  56         "ERROR: Cannot update system files - login cannot be %s.\n",
  57         "ERROR: uid %ld is already in use.  Choose another.\n",
  58         "ERROR: %s is already in use.  Choose another.\n",
  59         "ERROR: %s does not exist.\n",
  60         "ERROR: %s is not a valid %s.  Choose another.\n",
  61         "ERROR: %s is in use.  Cannot %s it.\n",
  62         "WARNING: %s has no permissions to use %s.\n",
  63         "ERROR: There is not sufficient space to move %s home directory to %s"
  64             "\n",
  65         "ERROR: %s %ld is too big.  Choose another.\n",
  66         "ERROR: group %s does not exist.  Choose another.\n",
  67         "ERROR: Unable to %s: %s.\n",
  68         "ERROR: %s is not a full path name.  Choose another.\n",
  69         "ERROR: %s is the primary group name.  Choose another.\n",




  18  *
  19  * CDDL HEADER END
  20  */
  21 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  22 /*        All Rights Reserved   */
  23 
  24 
  25 /*
  26  * Copyright (c) 2013 Gary Mills
  27  *
  28  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  29  * Use is subject to license terms.
  30  */
  31 
  32 char *errmsgs[] = {
  33         "WARNING: uid %ld is reserved.\n",
  34         "WARNING: more than NGROUPS_MAX(%d) groups specified.\n",
  35         "ERROR: invalid syntax.\n"
  36             "usage:  useradd [-u uid [-o] | -g group | -G group[[,group]...] |"
  37             "-d dir | -b base_dir |\n"
  38             "\t\t-s shell | -c comment | -m [-z|Z] [-k skel_dir] |"
  39             "-f inactive |\n"
  40             "\t\t-e expire | -A authorization [, authorization ...] |\n"
  41             "\t\t-P profile [, profile ...] | -R role [, role ...] |\n"
  42             "\t\t-K key=value | -p project [, project ...]] login\n"
  43             "\tuseradd -D [-g group | -b base_dir | -f inactive | -e expire\n"
  44             "\t\t-A authorization [, authorization ...] |\n"
  45             "\t\t-P profile [, profile ...] | -R role [, role ...] |\n"
  46             "\t\t-K key=value ... -p project] | [-s shell] | [-k skel_dir]\n",
  47         "ERROR: Invalid syntax.\nusage:  userdel [-r [-z|Z]] login\n",
  48         "ERROR: Invalid syntax.\n"
  49             "usage:  usermod -u uid [-o] | -g group | -G group[[,group]...] |\n"
  50             "\t\t-d dir [-m [-z|Z]] | -s shell | -c comment |\n"
  51             "\t\t-l new_logname | -f inactive | -e expire |\n"
  52             "\t\t-A authorization [, authorization ...] | -K key=value ... |\n"
  53             "\t\t-P profile [, profile ...] | -R role [, role ...] login\n",
  54         "ERROR: Unexpected failure.  Defaults unchanged.\n",
  55         "ERROR: Unable to remove files from home directory.\n",
  56         "ERROR: Unable to remove home directory.\n",
  57         "ERROR: Cannot update system files - login cannot be %s.\n",
  58         "ERROR: uid %ld is already in use.  Choose another.\n",
  59         "ERROR: %s is already in use.  Choose another.\n",
  60         "ERROR: %s does not exist.\n",
  61         "ERROR: %s is not a valid %s.  Choose another.\n",
  62         "ERROR: %s is in use.  Cannot %s it.\n",
  63         "WARNING: %s has no permissions to use %s.\n",
  64         "ERROR: There is not sufficient space to move %s home directory to %s"
  65             "\n",
  66         "ERROR: %s %ld is too big.  Choose another.\n",
  67         "ERROR: group %s does not exist.  Choose another.\n",
  68         "ERROR: Unable to %s: %s.\n",
  69         "ERROR: %s is not a full path name.  Choose another.\n",
  70         "ERROR: %s is the primary group name.  Choose another.\n",