Configuration Guide Password-Policy Commands
8 Password-Policy Commands
8.1 password policy life-cycle
Use this command to set the password lifecycle. Use the no form of this command to restore the
default setting.
password policy life-cycle days
no password policy life-cycle
Sets the password lifecycle, in the range from 1 to 65535 in the unit of
days.
No password lifecycle is set by default.
Global configuration mode
This command is used to set the password lifecycle. After the password lifecycle expires, the system
reminds you to change the password when you login next time.
This function is valid for the global password (the enable password and the enable secret
commands) and the local user password (the username
name
password
password
command)
while not valid for the password in line mode.
The following example sets the password lifecycle to 90 days.
Ruijie(config)# password policy life-cycle 90
8.2 password policy min-size
Use this command to set the minimum length of the password. Use the no form of this command to
restore the default setting.
password policy min-size length