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.

    /fr/documentation/aloha/9-5/_assets/images/grub.png
  3. Press e to edit the commands before you boot Image 1.

  4. Select the kernel line and press e again.

    /fr/documentation/aloha/9-5/_assets/images/edit-kernel-param1.png
  5. Once you can edit the kernel line, do the following:

    • Change tty0 to ttyS0 in the console param

    • Append param

    • INITSHELL=1

    /fr/documentation/aloha/9-5/_assets/images/edit-kernel-param2.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.

    /fr/documentation/aloha/9-5/_assets/images/restore-pass1.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.

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