makeuser [ -u username ] [ -U uid ] [ -G groupname | -g gid ] [ -d home_dir ] [ -c userclass ] [ -f ]
With this command a user $HOME directory can be created interactively. It is not imperative that the user account is already created when creating the user $HOME directory. When the user account does already exist, the defaults for all fields to be specified depend from the user name.
When entering a ? in the fields to be specified a list of available values on the system is printed. If the system is a LDAP or NIS client, the information list printed is a merge between the related name service and the information in the local files (NIS+FILES or LDAP+FILES).
All interactively queried fields can also be specified on the command line; such fields will then not be queried.
The user $HOME directory is created using the mkuser(3) command internally.
[ / ]
[ root@host001.acme.ch ][/bin/bash]: ~edrc/bin/makeuser
makeuser - a user friendly interface to mkuser, by Chr. Walther
SPECIFY SETTINGS:
  Username  : jdoe
  Comment  : John Doe
  User-ID (UID)   [1291]:
  Group-Name   [users]:
  Group-ID (GID)  : 100
  Home-Directory (HOME)   [/home/jdoe]:
  User-Class   : ?
    USERCLASS    COMPANY    DESCRIPTION
    -----------  ---------  -----------------------------------------------------------
    adba         Customer   Application DBA User Account
    app          Customer   Application Admin User Account (Application Owner)
    ftp-login    Customer   FTP User Account (Shell login expected)
    ftp-nologin  Customer   FTP User Account (Shell login not expected)
    user         Customer   Normal Enduser User Account
    acmedba      ACME       Database Administrator (Oracle Owner)
    acmesys      ACME       System Management Team
    monitoring   ACME       Monitoring Software System User
    notfall      ACME       Local Emergency System User
    patrol       ACME       Patrol Software System User
    root         ACME       Root System User for all Operating Systems
    _template    Template   Userclass Template, do *not* apply this userclass to a User
    (12)
  User-Class   [?]: adba
  Class-Description  : Application DBA User Account
  Force profile copy? <yn>  [y] :y
SUMMARY:
  Username...............: jdoe
  Comment................: John Doe
  User-ID (UID)..........: 1291
  Group-Name.............: users
  Group-ID (GID).........: 100
  Home-Directory (HOME)..: /home/jdoe
  User-Class.............: adba
  Class-Description......: Application DBA User Account
  Force profile copy.....: y
  Create User Home? <yn>  [n] :y
CREATE USER $HOME DIRECTORY:
  Initializing directory /home/jdoe
  Created /home/jdoe/core
  Created /home/jdoe/bin
  Created /home/jdoe/Mail
  Created /home/jdoe/.ssh
  Created /home/jdoe/.dt
      transferring ACME-README
      transferring .xinitrc
      transferring .userclass
      transferring .profile
      transferring .openwin-menu
      transferring .openwin-init
      transferring .myprofile
      transferring .mylogout
      transferring .mylogin
      transferring .mylog_files
      transferring .mykshrc
      transferring .myenv
      transferring .mydtwmrc
      transferring .mycshrc
      transferring .mailrc
      transferring .logout
      transferring .login
      transferring .kshrc
      transferring .exrc
      transferring .dtprofile
      transferring .dt/dtwmrc
      transferring .defaults
      transferring .cshrc
      transferring .vimrc
      transferring .bashrc
  done.
[ / ]
[ root@host001.acme.ch ][/bin/bash]: ~edrc/bin/makeuser
makeuser - a user friendly interface to mkuser, by Chr. Walther
SPECIFY SETTINGS:
  Username  : jdoe
  Comment  : John Doe
  User-ID (UID)   [1291]:
  Group-Name   [users]:
  Group-ID (GID)  : 100
  Home-Directory (HOME)   [/home/jdoe]:
  User-Class   [adba]: user
  Class-Description  : Normal Enduser User Account
  Force profile copy? <yn>  [y] :y
SUMMARY:
  Username...............: jdoe
  Comment................: John Doe
  User-ID (UID)..........: 1291
  Group-Name.............: users
  Group-ID (GID).........: 100
  Home-Directory (HOME)..: /home/jdoe
  User-Class.............: user
  Class-Description......: Normal Enduser User Account
  Force profile copy.....: y
  Create User Home? <yn>  [n] :y
CREATE USER $HOME DIRECTORY:
  Initializing directory /home/jdoe
      transferring .userclass
  done.
[ / ]
[ root@host001.acme.ch ][/bin/bash]: ~edrc/bin/makeuser
makeuser - a user friendly interface to mkuser, by Chr. Walther
SPECIFY SETTINGS:
  Username  : bboulder
  Comment  :
  User-ID (UID)   : 1992
  Group-Name   : users
  Group-ID (GID)  : 100
  Home-Directory (HOME)   : /home/bboulder
  User-Class   : user
  Class-Description  : Normal Enduser User Account
  Force profile copy? <yn>  [y] :y
SUMMARY:
  Username...............: bboulder
  Comment................:
  User-ID (UID)..........: 1992
  Group-Name.............: users
  Group-ID (GID).........: 100
  Home-Directory (HOME)..: /home/bboulder
  User-Class.............: user
  Class-Description......: Normal Enduser User Account
  Force profile copy.....: y
  Create User Home? <yn>  [n] :y
CREATE USER $HOME DIRECTORY:
  Created /home/bboulder
  Initializing directory /export/home/bboulder
  Created /home/bboulder/core
  Created /home/bboulder/bin
  Created /home/bboulder/Mail
  Created /home/bboulder/.ssh
  Created /home/bboulder/.dt
      transferring ACME-README
      transferring .xinitrc
      transferring .userclass
      transferring .profile
      transferring .openwin-menu
      transferring .openwin-init
      transferring .myprofile
      transferring .mylogout
      transferring .mylogin
      transferring .mylog_files
      transferring .mykshrc
      transferring .myenv
      transferring .mydtwmrc
      transferring .mycshrc
      transferring .mailrc
      transferring .logout
      transferring .login
      transferring .kshrc
      transferring .exrc
      transferring .dtprofile
      transferring .dt/dtwmrc
      transferring .defaults
      transferring .cshrc
      transferring .bashrc
  done.
This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.