Default Password Reset
If you've lost your password, you can restore the default admin password without resetting all parameters to the factory defaults.
-
Connect to your physical appliance through the serial port, or
Connect to your virtual appliance through your hypervisor's graphical console.
-
To display the Grub menu, press ESC.
GNU Grub version 0.96 (639K lower / 1047488K upper memory) +-------------------------------------------------------------------+ | Image 1 (VGA console) | | Image 2 (VGA console) | | Maintenance Kernel (serial console) | | Maintenance Kernel (VGA console) | | Reboot | | Halt | +-------------------------------------------------------------------+
-
Select Image 1, then press e.
GNU Grub version 0.96 (639K lower / 1047488K upper memory) +-------------------------------------------------------------------+ | root (hd0,1) | | savedefault savemap | | kernel /sys/active/kernel.img root=/dev/ram0 ro auto quiet panic=1| | initrd /sys/active/initrd.img | +-------------------------------------------------------------------+
-
To edit the kernel line, select it, then press e.
[ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ESC at any time exits. ] <t panic=1 flash=sda2 imag=active vmm=kvm console=tty0
-
Append
INITSHELL=1
to the boot command.<t panic=1 flash=sda2 imag=active vmm=kvm console=tty0 INITSHELL=1
-
Press Enter.
The Grub menu displays again.
GNU Grub version 0.96 (639K lower / 1047488K upper memory) +-------------------------------------------------------------------+ | root (hd0,1) | | savedefault savemap | | kernel /sys/active/kernel.img root=/dev/ram0 ro auto quiet panic=1| | initrd /sys/active/initrd.img | +-------------------------------------------------------------------+
-
To boot the kernel line command, select it, then press b.
You have requested this prompt by appending INITSHELL=1 to the kernel cmd line. Entering command line mode : enter one command per line, end with '.' OK >
-
To start a Bash shell, enter
/bin/sh
.> /bin/sh sh-3.00#
-
From the
sh-3.00#
prompt, call the following commands to reset the default password, then exit the Bash console.cd /sbin restore-etc cat /usr/share/factory/base-etc/shadow > /etc/shadow config save exit
-
To boot the appliance, enter
.
(a dot) at the new prompt.> .
Log in to the appliance as user admin with the admin password.
Change the default password from the Setup tab in the web UI.
Next up
SSH Public Key Access