[Sysname] password-control composition type-number 3 type-length 5
# Set the minimum number of password composition types to 3 and the minimum number of characters
of each password composition type to 5 for user group test.
[Sysname] user-group test
[Sysname-ugroup-test] password-control composition type-number 3 type-length 5
[Sysname-ugroup-test] quit
# Set the minimum number of password composition types to 3 and the minimum number of characters
of each password composition type to 5 for local user abc.
[Sysname] local-user abc
[Sysname-luser-abc] password-control composition type-number 3 type-length 5
password-control enable
Syntax
password-control enable
undo password-control enable
View
System view
Default level
2: System level
Parameters
None
Description
Use password-control enable to enable the global password control feature.
Use undo password-control enable to disable the global password control feature.
By default, the global password control feature is disabled.
Password control functions can take effect only after the global password control feature is enabled.
Disabling global password control (by using the undo password-control enable command) does not
clear the history password records. To clear existing history password records, execute the reset
password-control history-record command.
Related commands: display password-control.
Examples
# Enable the password control feature globally.
<Sysname> system-view
[Sysname] password-control enable
password-control expired-user-login
Syntax
password-control expired-user-login delay delay times times
undo password-control expired-user-login
153