You can configure the maximum number of unsuccessful login attempts, password strength requirement, and alarms to improve local user security.
To improve user security, you can raise password strength requirements and restrict local users' unsuccessful login attempts.
If the login password does not satisfy the security hardening policy, the system prompts you to change your password. Change your password based on the prompted message.
The system view is displayed.
The user security policy is configured.
The AAA view is displayed.
Operation |
Command |
Description |
---|---|---|
Enable forced change of initial password for local users. |
|
|
Forcible modification of the initial password is disabled for a specified local user. |
local-user user-name password-force-change disable |
When forced change of initial password for a local user is enabled, you can run this command to disable this function for a specified user. |
The minimum length of a local user name is configured. |
user-name minimum-length length |
The newly created local user name must comply with this command configuration. Otherwise, the local user name cannot be created. |
The minimum length of the password is configured. |
user-password min-len min-length |
This command applies to the passwords in simple text mode only. |
The password strength check is enabled for local users. |
- |
|
The maximum number of times the local user can use historical passwords is configured. |
user-password history-password-check historyPwdNum |
- |
The aging period of a local account is configured. |
|
If the period during which a local account is idle exceeds the configured aging period, the local account automatically ages. The user-aging command applies to all users in the system. The local-user aging command applies only to the specific user. If the user-aging command configures the aging period for all users, the following standard applies to a specific user:
|
The expiration date of a local account is configured. |
local-user user-name expire date |
If all accounts on a device are configured with expiration dates, after the last account expires, no more accounts can log in to the device. As a result, the device is out of management. To resolve this problem, new configurations allow the last account to keep valid when all the management accounts (terminal, Telnet, FTP, or SSH accounts) are configured with expiration dates. |
The period after which a password for a local user expires is configured. |
local-user user-name password expire days |
To harden network security, administrators can run the local-user password expire command to configure the period after which a password expires. When the password for a local user is changed, the system resets the period. The local-user password expire command applies only to local users. After a password expires, reconfigure a new password for users. Otherwise, users fail to log in. |
The password validity period the period for advance warning before the password expires are configured. |
user-password expire expire-days prompt prompt-days |
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. Only a level-3 or higher-level administrator can run the user-password expire command.
|
The period during which a local user is allowed to log in is configured. |
local-user user-name login-period begin-time to end-time begin-day to end-day |
- |
The status of a local user is configured. |
local-user user-name state { active | block [ fail-times fail-times-value interval interval-value ] } |
- |
The alarm and clear alarm thresholds for unsuccessful login attempts are configured. |
login-failed threshold-alarm upper-limit report-times lower-limit resume-times period period |
- |
Return to system view.
The local AAA server view is displayed.
Operation |
Command |
Description |
---|---|---|
The password strength check is enabled for local users. |
- |
|
The minimum length of the password is configured. |
user-password min-len min-length |
This command applies to the passwords in simple text mode only. |
A local administrator is required to change the initial password upon a second login. |
- |
|
The password validity period and the period for advance warning before the password expires are configured. |
user-password expire expire-days prompt prompt-days |
- |
The status of a local user is configured as Blocked. |
user username block [ fail-times fail-times-value interval interval-value ] |
- |
The configuration is committed.
You can run the display current-configuration configuration configuration-type command to check the configuration.