Password reset
This procedure resets the ASA enable password and the local administrator password. It keeps the saved configuration.
Use it only when you cannot log in. You need console access.
Before you start
- Connect the console cable. Set the terminal to 9600 baud, 8 data bits, no parity, 1 stop bit.
- If you can log in, save a backup:
copy running-config disk0:backup.cfg. - If
no service password-recoveryis configured, ROMMON asks to erase flash. Stop. This procedure cannot keep the configuration in that case.
Enter ROMMON
- Power off the unit.
- Power it on.
- Press Esc when the boot prompt appears. Press it again until
rommon #>appears. - If the prompt does not appear, power off and repeat. The window is short.
Skip the saved configuration
-
Set the configuration register:
confreg 0x41 -
Boot the image:
boot -
Wait for the
ciscoasa>prompt.
Restore the configuration
-
Enter privileged mode:
enablePress Enter at the password prompt. The password is blank.
-
Load the saved configuration:
copy startup-config running-configConfirm if the unit asks.
-
Enter configuration mode:
configure terminal -
Set the new passwords:
enable password <new-enable-password> passwd <new-login-password> username admin password <new-admin-password> privilege 15Use the existing local user name if it is not
admin. -
Restore the normal boot setting:
no config-register -
Exit and save:
end write memory -
Reload:
reload
Verify
-
Log in with the new enable password.
-
Log in to ASDM with the local administrator account, or with an empty user name and the enable password.
-
Check the configuration register:
show version | include registerThe value must be
0x1.