z
For a local user named test, the minimum password length is 6 characters, the minimum number of
password composition types is 2, the minimum number of characters in each password
composition type is 3, and the password aging time is 20 days.
Configuration procedure
# Enter system view.
<Sysname> system-view
# Set the global password aging time to 30 days.
[Sysname] password-control aging 30
# Set the minimum number of composition types for the super
password to 3 and the minimum number
of characters in each composition type to 3.
[Sysname] password-control super composition type-number 3 type-length 3
# Configure a super password.
[Sysname] super password level 3 simple 11111AAAAAaaaaa
# Create a local user named test.
[Sysname] local-user test
# Set the minimum password length for the local user to 6.
[Sysname-luser-test] password-control length 6
# Set the minimum number of composition types for the local user password to 2 and the minimum
number of characters in each password composition type to 3.
[Sysname-luser-test] password-control composition type-number 2 type-length 3
# Set the aging time for the local user password to 20 days.
[Sysname-luser-test] password-control aging 20
# Configure the password of local user.
[Sysname-luser-test] password simple 11111#####