Knowledgebase
Search:     Advanced search
Browse by category:
Glossary | Contact Us

Reseting Lost Root Password

Views: 655
Votes: 0
Posted: 10 Oct, 2007
by: Saunders T.
Updated: 10 Oct, 2007
by: Saunders T.
I haven't tried this information yet, but I found it on a forum and thought it was useful to keep...

Reseting a system you have lost the password to.


assuming you are using the grub bootloader

select the option to boot as normal but instead of pressing enter press e
add init=/bin/sh to the end of the kernel line
select the boot option, the system will start to boot but then early in the boot process will drop you to a shell

at the shell do

mount -o remount,rw /
passwd root
<enter a new root password>
init 3

the system should now boot to the login prompt allowing you to log in as root using the password you set above.
Others in this Category
document How Much Memory is in my Linux Box?



RSS