Click to See Complete Forum and Search --> : Lost root password but have physical access HOW?


barney34
03-16-2001, 10:30 AM
I have a redhat 6.0 box that I lost the root password to and I heard of a way to change it durning boot what is the button(s) I will need to push at boot. I have physical access to the box. thank you

Kadesh
03-16-2001, 10:33 AM
When LILO's boot prompt comes up, enter "linux single" (no quotes). It load right into a root shell, change it from there.

mrBen
03-16-2001, 10:37 AM
Kadesh, why do keep jumping in and answering questions I know the answer to. No fair :(

ph34r
03-16-2001, 10:40 AM
If that doesn't work, then you will need to boot with a mini distro like HAL 91 or tomsrbt, and then mount your / partition, then edit your etc/passwd file - just remove the entire pw field for root. Reboot normally, login as root with no password, and run passwd to set a new one.