lock
Use lock to lock the current user line. This method prevents unauthorized users from using the user line.
Syntax
lock
Default
By default, the system does not lock any user line.
Views
User view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
This command is not supported in FIPS mode.
After executing the lock command, enter the password for unlocking the user line and confirm the password by entering it again.
To unlock the user line, press Enter and enter the correct password.
Examples
# Lock the current user line and then unlock it.
<Sysname> lock Please input password<1 to 16> to lock current line: Password: Again: locked !
// The user line is locked. To unlock it, press Enter and enter the password:
Password: <Sysname>