Remove grub password

From roonics
Revision as of 10:06, 20 March 2022 by Jlambert (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Remove grub password allowing you to edit grub lines.

1. Boot vm from Red Hat or Centos cd

2. Select "Troubleshooting" from the menu


3. Select the "Rescue" option from the menu


4. Select "Continue" from the menu, this will mount the os to /mnt/sysimage


5. Depending on what distro you are running you need to edit one of these files:


6. type:

vi menu.lst

7. Completely remove the line that starts with "Password", you can do this by moving to the line and pressing "dd"

password --md5 $hgUjKUFhedfa$0947$hFgrjdjskwkel34dGhyTreefgj.nGr4Y..

8. Save and exit using:


9. Reboot

You should now be able to press "e" at the grub menu to edit the boot lines without being prompted for a password. ‎<comments />