HP XC System Software Administration Guide Version 2.1

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 id entifier number (GID)
A default value is assigned if you do n ot supply this v a lue.
Home directory
A default value based on the l ogin name is assigned automatically if you do not
provide this information.
•Shell
The default value is assigned if you do no t supply this inform ation.
Expiration date
This value specifies when the account will be disabled. Bypassing this entry means
that there is no expiration date for the account.
ThedateentrymustbeintheformatYYYY-MM-DD.
See the useradd
(8) manpag e for more information about these and oth er command s.
3. Use the useradd comman d to add a local user account on the golden client node:
# useradd options name
For exa mp le, the following command adds a u ser named John Adams with the lo gin
name adamsj. This user will use the Korn shell, and will be a ssigned the p assword
temporary, 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 C h apter 7 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.
10.3 Modifying a Local User Account
The information for a user account can be changed with the usermod command; a user can
also change som e account parameters by using the passwd, chsh,andchfn com mands on
the local node. See the corresponding manpag e for more information on these comm a nds.
After the information is chang ed, it does not tak e effect on all t he nodes until the files are
propagated to all nodes in the system.
_________________________ Note _________________________
Make sure that users who change their user account parameters do so on the golden
client node, or that they notify you from which node they changed their parameter.
You must propagate these user account changes to all the other nodes in the system by using the
getimage and updateclient commands, as described in Section 10.2.
10.4 Deleting a Local User Account
Remove a user account with the userdel command; you must be superus er on the go lden
client node t o use this command. This command provides the -r option, which rem oves th at
users home directory, all the files in that directory, and the users mail spoo l.
Make sure that y ou propagate these changes to all the other no des in the system by using the
getimage and updateclient commands, as described in C hapter 7.
10-2 Administering Local User Accounts