password-control login idle-time
Syntax
password-control login idle-time idle-time
undo password-control login idle-time
View
System view
Default level
2: System level
Parameters
idle-time: Specifies the maximum account idle time, in the range of 0 to 365, in days. 0 means no
restriction for account idle time.
Description
Use password-control login idle-time to set the maximum account idle time. If a user account is idle for
this period of time, it becomes invalid.
Use undo password-control login idle-time to restore the default.
By default, the maximum account idle time is 90 days.
Related commands: display password-control.
Examples
# Set the maximum account idle time to 30 days.
<Sysname> system-view
[Sysname] password-control login idle-time 30
password-control login-attempt
Syntax
password-control login-attempt login-times [ exceed { lock | lock-time time | unlock } ]
undo password-control login-attempt
View
System view
Default level
2: System level
Parameters
login-times: Specifies the maximum number of consecutive failed login attempts, in the range of 2 to 10.
exceed: Specifies the action to be taken when a user fails to log in after the specified number of attempts.
lock: Permanently prohibits a user who fails to log in after the specified number of attempts from logging
in.
lock-time time: Forces a user who fails to log in after the specified number of attempts to wait for a period
of time before trying again. The time argument is in minutes and in the range of 1 to 360.
156