Skip to main content

3.5.8 Adding an XSCF User Account and Setting a Password


3.5.8 Adding an XSCF User Account and Setting a Password
To add a user account locally in the XSCF, use the adduser command.
Execute the command with a user account that has the useradm privilege. For information on the names that can be used for user accounts, see "3.5.1 Local User Accounts Saved in the XSCF."
For the user account that was added, use the password command to set the password. The password command sets the validity period of the password with the following options.
Table 3-10  password Command Options
Option Content of Setting
-e
Sets the user account validity period, or sets the expiration date. When set to NEVER, the expiration date for the user account is eliminated.
-i
Sets the number of days after the password expiration date before the account is locked out
-M
Sets the maximum number of days that a password is valid
-n
Sets the minimum number of days that a password is valid
-w
Sets the number of days after a password expiration warning is issued before the password actually expires
Operation Procedure
  1. Execute the adduser command to add a user account.
    The following example specifies jsmith for the user account name. If the UID specification is omitted, a UID is automatically assigned.
XSCF> adduser jsmith
  1. The following example adds a user account with a UID specified, using the -u option.
XSCF> adduser -u 359 jsmith
  1. Execute the password command, and specify a password.
XSCF> password jsmith
Password:
Retype new password:
passwd: password updated successfully
XSCF>
  1. The following example specifies 60 days for the expiration time and 15 days ahead for the start date for warnings before the password expires.
XSCF> password -M 60 -w 15 jsmith