9.3.2.9. set password-policy
A - Introduction
The
`password-policy` command in `set` sub-group enables defining a password policy for the `setup`, `gviewadm` and `gview` accounts.This policy applies to all users.
B - Prerequisites
User: setup
Dependencies: N/A
C - Command
To set the password complexity options:
`set password-policy {lowercase-optional|lowercase-required|uppercase-optional|uppercase-required|digits-optional|digits-required|symbols-optional|symbols-required}`To enable or disable the password control policy:
`set password-policy {disable|enable}`To restore the default password control policy:
`set password-policy restore-default`To set the minimum password length:
`set password-policy password-length {8-100}`To set the length of time a password is valid:
`set password-policy validity-duration {0|1-3650}`To disallow previously used passwords:
`set password-policy previous-check {0|1-1000}`D - Procedure to remove the restriction on numbers
The command prompt is displayed.
(gcap-cli)
Enter the command
set password-policy digits-optional
- ValidateThe system displays the result
Rules successfully updated
Note
To avoid having an end of validity, put 0 in the`Validity duration`field.To prevent verification of old passwords, put 0 in the`Verify last 0 passwords`field.
E - Procedure to disable the default password control policy
The command prompt is displayed.
(gcap-cli)
To disable the default password control policy:
Enter the command
set password-policy disable
- ValidateThe system displays the result
Rules successfully updated
To check the value modification:
Enter the command
show password-policy
- ValidateThe system displays the disabled status of the control
No active password policy