188
Examples
# Specify that all passwords must contain at least three types of characters and each type must contain
at least five characters.
<Sysname> system-view
[Sysname] password-control composition type-number 3 type-length 5
# Specify that the password of the user group test must contain at least three types of characters and each
type must contain at least five characters.
[Sysname] user-group test
[Sysname-ugroup-test] password-control composition type-number 3 type-length 5
[Sysname-ugroup-test] quit
# Specify that the password of the local user abc must contain at least three types of characters and each
type must contain at least five characters.
[Sysname] local-user abc
[Sysname-luser-abc] password-control composition type-number 3 type-length 5
password-control { aging | composition | history | length }
enable
Syntax
password-control { aging | composition | history | length } enable
undo password-control { aging | composition | history | length } enable
View
System view
Default level
2: System level
Parameters
aging: Enables the password aging function.
composition: Enables the password composition restriction function.
history: Enables the password history control function.
length: Enables the minimum password length restriction function.
Description
Use the password-control { aging | composition | history | length } enable command to enable the
password aging, composition restriction, history, or minimum password length restriction function.
Use the undo password-control { aging | composition | history | length } enable command to disable
the specified function.
By default, the four password control functions are all enabled.
• For these four functions to take effect, the password control feature must be enabled globally.
• You must enable a function for its relevant configurations to take effect. For example, if the minimum
password length restriction function is not enabled, the setting by the password-control length
command does not take effect.