The password expire command sets the password validity period.
The undo password expire command restores the default password validity period.
By default, the password validity period is 90 days.
Parameter | Description | Value |
---|---|---|
day | Indicates the password validity period. If the value is 0, the password is permanently valid. |
The value is an integer that ranges from 0 to 999, in days. The default value is 90. |
Usage Scenario
To improve password security, the administrator can use this command to set the validity period for local user's password. When the validity period expires, the password becomes invalid.
Precautions
Changing the system time will affect the password validity status.
After this command is executed, the device checks whether the password expires every minute; therefore, there may be a time difference within 1 minute.