How to Reset Root Password in Linux with a GRUB Menu
Had to go recover a few files for a friend.
Box is running on an older version of Linux (Red Hat 8.0?) and nobody remembers the password. Tried to do a brute force recovery, but in vain.
Boot using single user mode. This automatically logs the user as root.
- Restart machine.
- In the GRUB menu, press ‘a’ to edit kernel options
- Append a space and the word ‘single’ after the menu option you wish to use
- Save and continue