There are times when you may want to disable password recovery (for example if someone is working in high secure environment).

Use the following command to disable password recovery

Router(config)#no service password-recovery
   WARNING:
   Executing this command will disable password recovery mechanism.
   Do not execute this command without another plan for
   password recovery.

Are you sure you want to continue? [yes/no]: yes
Router(config)#


The above command will disable all access to the ROMMON. Be careful when using the above command, as there is no way to recover password.

The following message is displayed during boot up when “no service password-recovery” command is configured.

    PASSWORD RECOVERY FUNCTIONALITY IS DISABLED

    System Bootstrap, Version 11.1(19)AA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1)
...