Configuration Guide Basic Switch Management Configuration
Configuring the Duplicate Password Check
The duplicate password check restricts the reuse of the passwords that have
been configured recently.The recent use times is configured through the
command password policy no-repeat-times.
Ruijie(config)# password policy
no-repeat-times times
Restrict the reuse of the passwords that
have been configured for several times
recently
times: Passwords that have been
configured for several times recently
Ruijie(config)# no password policy
no-repeat-times
Remove the restriction to the reuse of
the passwords that have been
configured for several times recently
The duplicate password check is the recording of recently used passwords
based on the privilege level or user. The differences are as follows:
For passwords configured at different privilege levels, e.g. passwords
configured through the command enable password or enable secret, the
passwords used recently are recorded based on the privilege level.
For passwords configured by local users, e.g. user passwords configured
through the command username, the passwords used recently are
recorded based on a user.
Configuring the Password Lifecycle
The password lifecycle configuration is to set the valid lifetime of a password.
Ruijie# configure terminal
Enter the global configuration mode
Ruijie(config)# password policy
life-cycle days
Configure the password lifecycle
days: password lifecycle, in day
Ruijie(config)# no password policy
life-cycle
Remove the password lifecycle
The device checks whether the password used by the user has expired when
he/she uses the password to log in. If a password expires after its user has
logged in, the user will be prompted to change the password when logging in
with that password later.If the user makes no change, the current command
can still be used.