makeuser

Package: WA2L/edrc 1.5.57
Section: General Commands (1)
Updated: 03 September 2008
Index Return to Main Contents

 

NAME

makeuser - user friendly interface to mkuser

 

SYNOPSIS

edrc/bin/makeuser [ -h ]

makeuser [ -u username ] [ -U uid ] [ -G groupname | -g gid ] [ -d home_dir ] [ -c userclass ] [ -f ]

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

makeuser is a user friendly interface to the mkuser(3) command.

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.

 

OPTIONS

-h
usage message.

-u username
username of the user to create a $HOME directory for.

-U uid
User-ID of the user.

-G groupname
name of the primary group the user is member of.

-g
Group-ID of the primary group of the user.

-d home_directory
$HOME directory path of the user.

-c user_class
userclass of the user. The userclass is the template of the $HOME directory. The userclass can be queried by the user using the userclass(1) command. To enable the userclass(1) command to return the userclass, a file with the name .userclass containing a single line with the name of the applied userclass has to be created. makeuser(1) also reads the .userclass file of the related $HOME directory when re-applying the template to an already existing $HOME directory.

 

ENVIRONMENT

-

 

EXIT STATUS

0
no error.

1
classes dir as set in the CLASSES_DIR setting in the makeuser.cfg does not exist.

2
makeuser was started with the wrong user. The start user has to be set in the START_USER setting in the makeuser.cfg file.

4
usage printed.

5
command aborted pressing Ctrl+C.

6
configfile makeuser.cfg does not exist.

11
temporary directory could not be claimed or created in /tmp. Check the system temporary directory /tmp if you get this error, it is an indicator of system intrusion.

 

FILES

etc/makeuser.cfg
configuration file of makeuser, see makeuser.cfg(4) for more information.

$CLASSES_DIR/.index
index file for all userclasses. This file is read when displaying the available userclasses when entering ? in the "User-Class :" dialog. See userclass.index(4) for more information.

$CLASSES_DIR/<userclass>/
files of a userclass.

/etc/passwd
local user account definition (NS: FILES).

/etc/group
local group definition (NS: FILES).

/etc/auto.home
default local automounter map for $HOME server location (NS: FILES). See also makeuser.cfg(4).

NS: NIS
nis map ( passwd, group, auto.home ).

NS: LDAP
LDAP map ( passwd (ou=People), group (ou=Group), auto.home ).

 

EXAMPLES

1) create a $HOME directory for an existing user account:

[ / ]
[ 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.

2) apply a different userclass to a $HOME directory:


[ / ]
[ 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.

3) create a $HOME directory for an non-existing user account:

[ / ]
[ 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.

 

SEE ALSO

edrcintro(1), makeuser.cfg(4), userclass.index(4), mkuser(3), passwd(4), group(4)

 

NOTES

-

 

BUGS

-

 

AUTHOR

makeuser was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2008 Christian Walther

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.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 00:14:13 GMT, March 08, 2025