[Sysname-ugroup-test] password-control length 9
[Sysname-ugroup-test] quit
# Set the minimum password length to 9 characters for local user abc.
[Sysname] local-user abc
[Sysname-luser-abc] password-control length 9
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: Maximum account idle time, in the range 0 to 365, in days. 0 means no restriction for account
idle time.
Description
Use the password-control login idle-time command to set the maximum account idle time. If a user
account is idle for this period of time, it becomes invalid.
Use the undo password-control login idle-time command 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: Maximum number of consecutive failed login attempts, in the range 2 to 10.
192