Disabling or re-enabling the password recovery process
Disabling the password recovery process means that the only method for recovering from a lost manager username (if configured) and password is to reset the switch to its factory-default configuration, removing any non-default configuration settings.
Disabling password-recovery requires that factory-reset be enabled, and locks out the ability to recover a lost manager username and password on the switch. In this event, there is no way to recover from a lost manager username/password situation without resetting the switch to its factory default configuration. This can disrupt network operation and make it necessary to temporarily disconnect the switch from the network to prevent unauthorized access and other problems while it is being reconfigured. Also, with factory-reset enabled, unauthorized users can use the Reset +Clear button combination to reset the switch to factory default configuration and gain management access to the switch.
Syntax:
[no] front-panel-security password-recovery
Enables or disables the ability to recover a lost password.
When enabled, the switch allows management access through the password recovery process described below. This provides a method for recovering from lost manager usernames and passwords.
When disabled, the password recovery process is disabled and the only way to regain management access to the switch is to use the Reset+Clear button combination. See Restoring the factory default configuration to restore the switch to its factory default configuration.
Default: Enabled.
To disable password-recovery:
You must have physical access to the front panel of the switch.
Factory-reset must be enabled (the default).
Steps for disabling password-recovery:
-
Use
show front-panel-security
to determine whether the factory-reset parameter is enabled. If it is disabled, use thefront-panel-security factory-reset
command to enable it. - Press and release the Clear button on the front panel of the switch.
-
Within 60 seconds of pressing the
Clear button, enter the following command:
front-panel-security password-recovery
-
Do one of the following after the
CAUTION
message appears:- If you want to complete the command, press [Y].
- If you want to abort the command, press [N].
Switch(config)# no front—panel—security password—recovery **** CAUTION **** Disabling the clear button without password recovery prevents switch passwords from being reset. If the switch password is lost, restoring the default factory configuration will be required to regain access! Continue with disabling password recovery [y/n]?