The local-user expire-date command sets the expiration date of a local account.
The undo local-user expire-date command restores the default expiration date of a local account.
By default, a local account is permanently valid.
Parameter | Description | Value |
---|---|---|
user-name | Specifies a local account. |
The value is a string of 1 to 64 characters. It cannot contain spaces, asterisk, double quotation mark and question mark.
NOTE:
During local authentication or authorization, run the authentication-mode { local | local-case } or authorization-mode { local | local-case } command to configure case sensitivity for user names. If the parameter is set to local, user names are case-insensitive. If the parameter is set to local-case, user names are case-sensitive. Note the following when configuring case sensitivity for user names:
|
expire-date | Specifies the expiration date of the local account. |
The value is in YYYY/MM/DD format. YYYY specifies the year, MM specifies the month, and DD specifies the day. The value ranges from 2000/1/1 to 2099/12/31. |
Usage Scenario
After a local account is created, the account has no expiration date by default. You can run the local-user expire-date command to set the expiration date of a local account. When the expiration date is reached, the account expires. This configuration enhances network security.
Precautions