Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)
useradd(8) OSS Shell and Utilities Reference Manual
Only valid on systems running Safeguard
• The password must respect the system password policy.
• The system administrator is responsible for placing the default user files in
the /etc/skel/ directory (or any other skeleton directory specified in
/etc/default/users or on the command line).
• The -D option changes the default values specified in /etc/default/users
file. If this command is executed by someone other than super.super, such
as SOA or other delegates, super.super must verify they have write access
to the /etc/default/users file.
CAVEATS
• Usernames can be up to 17 characters in length.
• Alias names can be 32 characters in length.
• Group number and member number can be 0 - 255.
CONFIGURATION
The following configuration variables in /etc/login.defs change the behavior of this tool:
GROUP
When a partial name is specified as LOGIN, the group name and corresponding group
number will be taken from the GROUP variable in the /etc/default/users file. The GROUP
variable is specified in the format GROUP=groupName,groupNumber. For example,
GROUP=TEST,99.
USER
When a LOGIN name is not specified with the -A option, the LOGIN name is taken from
the USER variable in the /etc/default/users file. The USER variable is specified in the for-
mat USER=group- Name.memberName. For example, USER=TEST.USER1.
CREATE_HOME (boolean)
Indicates if a home directory must be created by default for new users.
Only valid on systems running Safeguard.
PASS_MAX_DAYS (number)
The maximum number of days a password may be used. If the password is older than this, a
password change is forced. The valid value for this is -1 or 1 through 32767. If not
specified, -1 is assumed (which disables the restriction).
Only valid on systems running Safeguard.
UMASK (number)
The file mode creation mask is initialized to this value. If not specified, the mask is initial-
ized to 022. The useradd and newusers commands use this mask to set the mode of the
home directory when they create files.
Only valid on systems running Safeguard.
FILES
/etc/default/users
Default values for account creation.
/etc/skel/
Directory containing default files.
12−74 Hewlett-Packard Company 527188-021