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)
  1. Enter the command

    set password-policy digits-optional
    
  2. Validate
    The 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)
  1. To disable the default password control policy:

    1. Enter the command

      set password-policy disable
      
    2. Validate
      The system displays the result
      Rules successfully updated
      
  2. To check the value modification:

    1. Enter the command

      show password-policy
      
    2. Validate
      The system displays the disabled status of the control
      No active password policy