KB Article #101002
How to reset the root OS password of a ST appliance
How to reset the root OS password of a ST appliance
Issue
The root OS password has been forgotten and needs to be recovered or reset.
Solution
The root OS password can't be recovered, at least not in a time-effective way. However, it could be reset very quickly following the procedure bellow.
- Prepare a USB flash drive or a USB CD-ROM drive.
- Load a bootable Linux image to the media prepared in step [1].
- Attach a monitor and a keyboard to the box.
- Enter the BIOS and set it to firstly attempt to boot from Removable media:
- Reboot the box. When it comes up start hitting the Del key until entering the BIOS.
- Set Boot Sequence so that the first boot device is Removable drive.
- Save and exit BIOS.
- Mount the drive containing the root partition (/dev/sda6 on 4500 appliances, /dev/sda7 on 5200 appliances) to a given mount point, /mnt in this case.
- Edit the /mnt/etc/passwd file:
- The first line should be something like this: root:x:0:0:root:/root:/bin/bash
- Delete the "x". Save and exit.
- Reboot. Remember to disconnect the USB media prior to rebooting.
- Login as root. The system should accept the login without prompting for a password.
- Use a text editor to open the /etc/passwd file and add the "x" deleted in step [6b].
- Issue passwd and enter the new root password.