Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP XC System Software : Administration Guide > Chapter 11 Managing Local User Accounts

Adding a Local User Account

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Use the following procedure to add a user account and to propagate that information to all the nodes in the system:

  1. Log in to the golden client node as superuser.

  2. Collect as much of the following information about this account as possible:

    • Login name

      This information is required.

    • User's name

    • User's password

      Note:

      A customary practice is to assign a temporary password that the user changes with the passwd command, but this data must be propagated to all the other system nodes also. See “Distributing Software Throughout the System” for more information.

    • User identifier number (UID)

      A default value is assigned if you do not supply this information; this value is usually the next available UID. If you assign a value, first make sure that it is not already in use.

    • Group identifier number (GID)

      A default value is assigned if you do not supply this value.

    • Home directory

      A default value based on the login name is assigned automatically if you do not provide this information.

    • Shell

      The default value is assigned if you do not supply this information.

    • Expiration date

      This value specifies when the account will be disabled. Bypassing this entry means that there is no expiration date for the account.

      The date entry must be in the format YYYY-MM-DD.

    For more information about these and other commands, see useradd(8).

  3. Use the useradd command to add a local user account on the golden client node:

    # useradd options name

    For example, the following command adds a user named John Adams with the login name adamsj. This user will be assigned the password temporary, will use the Korn shell, and will be assigned the home directory /users/adamsj, and default values for the home directory, UID, and GID.

    # useradd -d /users/adamsj -p temporary -s /bin/ksh  adamsj
  4. Use the procedure in “Distributing Software Throughout the System” to transfer and propagate the files in the necessary files and directories, including the home directory for the user, the /etc/passwd file, and the /etc/shadow file.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2003 Hewlett-Packard Development Company, L.P.