Users and passwords
Default password reset
Caution
This procedure involves editing the Grub bootloader to change how the operating system is loaded into memory. Use it with caution, and only if you have no other means of recovering the administrator password.
If you’ve lost your password, you can restore the default admin
password without resetting all parameters to the factory defaults.
-
Connect to HAProxy ALOHA:
- Connect to your physical appliance through the serial port.
- Connect to your virtual appliance through your hypervisor’s graphical console.
-
To display the Grub menu, press
ESC
.textGNU 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 |+-------------------------------------------------------------------+textGNU 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 presse
.textGNU 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 |+-------------------------------------------------------------------+textGNU 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 presse
.text[ Minimal BASH-like line editing is supported. For the first word, TABlists possible command completions. Anywhere else TAB lists the possiblecompletions of a device/filename. ESC at any time exits. ]<t panic=1 flash=sda2 imag=active vmm=kvm console=tty0text[ Minimal BASH-like line editing is supported. For the first word, TABlists possible command completions. Anywhere else TAB lists the possiblecompletions of a device/filename. ESC at any time exits. ]<t panic=1 flash=sda2 imag=active vmm=kvm console=tty0Info
If you connect to a physical appliance through the serial port, the
tty
parameter should readttyS0
. -
Append
INITSHELL=1
to the boot command.text<t panic=1 flash=sda2 imag=active vmm=kvm console=tty0 INITSHELL=1text<t panic=1 flash=sda2 imag=active vmm=kvm console=tty0 INITSHELL=1 -
Press
Enter
.The Grub menu displays again.
textGNU 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 |+-------------------------------------------------------------------+textGNU 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 pressb
.textYou 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>textYou 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
.text> /bin/shsh-3.00#text> /bin/shsh-3.00# -
From the
sh-3.00#
prompt, call the following commands to reset the default password, then exit the Bash console.bashcd /sbinrestore-etccat /usr/share/factory/base-etc/shadow > /etc/shadowconfig saveexitbashcd /sbinrestore-etccat /usr/share/factory/base-etc/shadow > /etc/shadowconfig saveexit -
To boot the appliance, enter
.
(a dot) at the new prompt.text> .text> . -
Log in to the appliance as user
admin
with the admin password. -
Change the default password from the Setup tab in the web UI.
-
To make your changes persistent after a reboot, click the Setup tab. Then click Save under Configuration.
Do you have any suggestions on how we can improve the content of this page?