Displaying Password Control 563
n
In this section, you must note the effective range of the same commands when
executed in different views or to different types of passwords:
■ Global settings in system view apply to all local user passwords and super
passwords.
■ Settings in the local user view apply to the local user password only.
■ Settings on the parameters of the super passwords apply to super passwords
only.
The priority of these settings is as follows:
■ For local user passwords, the settings in local user view override those in system
view unless the former are not provided.
■ For super passwords, the separate settings for super password override those in
system view unless the former are not provided.
Displaying Password
Control
After completing the above configuration, you can execute the display command
in any view to display the operation of the password control and verify your
configuration.
Enable the password
composition check function
password-control
composition enable
Optional
By default, the password
composition check function is
enabled.
Configure the password
composition policy, globally
password-control
composition type-number
policy-type [ type-length
type-length ]
Optional
By default, the minimum
number of types a password
should contain is 1 and the
minimum number of characters
of each type is 1.
Configure the password
composition policy for a super
password
password-control super
composition type-number
policy-type [ type-length
type-length ]
Optional
By default, the minimum
number of types a password
should contain is 1 and the
minimum number of characters
of each type is 1.
If the type-length is not
specified, the global
type-length is used.
Create a local user or enter
local user view
local-user user-name -
Configure the password
composition policy for the
local user
password-control
composition type-number
policy-type [ type-length
type-length ]
Optional
By default, the minimum
number of types a password
should contain is 1 and the
minimum number of characters
of each type is 1.
If the type-length is not
specified, the global
type-length is used.
Table 417 Configure password composition policy
Operation Command Description