Lost?
On some of my servers I only login once a quarter maybe. On these machines I've had to recover my password many times, and here's the quick process I use.
The Process
This process only works if your system has Grub as its boot loader (you can also do this with lilo and most others, but you will have to check elsewhere to see how to do it).
Reboot the box
At the grub loader type 'e'
Press 'e' once more once in the next screen
On the line that begins with 'kernel' add the word 'single' to the end (this will boot the box to single user mode).
Type 'b' to boot to single user mode
Change your password with 'passwd'
Reboot again let it boot regularly
Login with new password
I hope this is useful for someone!







0 Comments