The user-password expire prompt command sets the password validity period and the period for advance warning before the password expires.
The undo user-password expire command cancels the configuration.
By default, the configured password does not expire.
Parameter | Description | Value |
---|---|---|
expire-days |
Specifies the password validity period. |
The value is an integer in the ranging from 0 to 365. If the value is 0, it means that the password never expires. |
prompt prompt-days |
Specifies the period for advance warning before the password expires. |
The value is an integer in the ranging from 0 to 180. |
Usage Scenario
To prevent account stealing due to unchanged passwords, run the
user-password expire command to set the password validity period and the period for advance warning before the password expires.
Expiration time is calculated from when the account was created.
Prerequisites
A local user has logged in to the device as an administrator.
Configuration Impact
Precautions