R3721-F3210-F3171-HP High-End Firewalls Access Control Command Reference-6PW101
176
Examples
# Specify that all passwords must each contain at least 3 types of characters and each type must contain
at least 5 characters.
<Sysname> system-view
[Sysname] password-control composition type-number 3 type-length 5
# Specify that passwords in user group test must contain at least 3 types of characters and each type must
contain at least 5 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 local user abc must contain at least 3 types of characters and each type
must contain at least 5 characters.
[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 password control feature globally.
Use undo password-control enable to disable the password control feature globally.
By default, the password control feature is disabled globally.
Only after the password control feature is enabled globally, do the password control functions take effect.
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