I'm locked out of a Red Hat Linux 5 machine and need to "break in" to reset the root password. I've done this before by interrupting GRUB and putting the machine in failsafe to get to root, but I can not remember the details. Once I stop GRUB, what do I do?
Asked
Active
Viewed 3,303 times
1 Answers
2
Booting:
- Use the arrow keys to select the kernel to boot
- Hit e to edit the command line
- Append
init=/bin/bash
to that line and hit Enter - Hit b to boot
Once booted:
mount -o remount,rw /
passwd
![](../../users/profiles/144990.webp)
Dennis Kaarsemaker
- 18,793
- 2
- 43
- 69