|
|
You can add users with a simple command:
useradd username
Default values are used unless overridden by command-line options described in the useradd(1M).
If you see this error message:
uid number not aged sufficientlyIt means you are attempting to assign a UID that was previously assigned and removed. Removed UIDs are set aside for a period as described in ``Limiting reuse of UIDs''. This prevents a UID from being reused and the new account having access to information and files belonging to the original user. You can override this restriction using the -i option, but this is not recommended.
In addition to the settings available from the Options User Defaults selection of the Account Manager, there are other parameters that can be set using the System Defaults Manager or on the command line with defadm(1M). These defaults apply both to the Accounts Manager and useradd(1M).
The syntax for the command-line is:
defadm useradd parameter=value
where the parameters are as shown in ``useradd(1M) default parameters''.
useradd(1M) default parameters
Parameter | Function | useradd option | Example |
---|---|---|---|
SHELL | login shell | -s | /usr/bin/sh |
HOMEDIR | home directory location | -d | /home |
SKELDIR | location of environment files | -k | /etc/skel |
FORCED_PASS | path of password generator | -p | - |
GROUPID | login group | -g | 1 |
INACT | days until inactive account is locked | -f | 365 |
EXPIRE | expiration date for account | -e | 12/31/99 |
AUDIT_MASK | list of audit events | -a | bad_auth,passwd |