This section shows you how to reset the ALOHA "admin" password without going though a factory reset.

We also recommend that you reset the "admin" password after you install the ALOHA.

Reset password

  1. Check that you have a working console connection to the ALOHA.

    • If you have a physical ALOHA, then you must connect to the serial port.

    • If you have a virtual ALOHA, then follow the instructions here using the Graphical/Direct console.

  2. Immediately after you switch on the ALOHA, press the "escape" key multiple times to get to the grub menu.

    /documentation/aloha/latest/assets/images/grub-1b12554bbd906e512c793df339225e7adffcd252e7a2d5823d79ba2d196501ac.png
  3. Press e to edit the commands before you boot Image 1.

  4. Select the kernel line and press e again.

    /documentation/aloha/latest/assets/images/edit-kernel-param1-4396381c93c2c997737e54689dd359abe435d19bbd455636272f081c710b5028.png
  5. Once you can edit the kernel line, do the following:

    • Change tty0 to ttyS0 in the console param

    • Append param

    • INITSHELL=1

    /documentation/aloha/latest/assets/images/edit-kernel-param2-b88d350498e498e16530b3a55618e8cb3ddf225d70a1d1bf92f6de2825926cd4.png
  6. Press Enter to save the configured kernel params and return to the previous menu

  7. Press b to start the image.

  8. Once started, you will be in a hostile environment; hence, you must invoke a shell using /bin/sh.

    /documentation/aloha/latest/assets/images/restore-pass1-c1e7f42fac47e08c9d0b64ee411c4385f694033da2793e40a8fba6e984a68384.png
  9. Proceed in the order below to reset the "admin" password:

    • Mount the system partition (second partition of the compact flash).

    • "Untar" the saved configuration.

    • Remove the shadow file.

    • Recreate the configuration archive again and move it to overwrite the old one.

    • "Umount" the system partition.

    $ sudo mount /dev/sda2 /mnt
    $ sudo cd /tmp
    $ sudo tar xzf /mnt/cfg/config.cur
    $ sudo rm etc/shadow
    $ sudo tar czf config.cur etc/
    $ sudo mv config.cur /mnt/cfg/
    $ sudo umount /mnt
  10. Restart ALOHA.