Recover Root password
Hi all,
Is there a way for me to recover the root password? I forgot the root password and couldn't figure out how to reset it. I do have a user account to log in. Thanks |
boot linux in single user mode, and set the password there.
chris xxxx |
i had also faced the same problem once and was forced to reinstall...how to boot in single user mode..pls give detail.
|
at the lilo boot prompt type linux single, which will boot the system at runlevel 1 (single user mode). Either that or edit the /etc/inittab to change the default runlevel to 1.
That's all I know! glj |
Code:
lilo: linux single |
thx a lot ..it's working....this site has really helped me a lot.
|
Quote:
|
Can U Try This!!!!
U Maybe Interested In Trying This Out....
1) linux init=/bin/sh.......this will give u a shell prompt 2)you'll have to remount the root filesystem 3)After single-user mode, it's cleaner to reboot rather than to press ^D to do the multiuser boot, because the init "runlevel" mechanism is messy yaar. 4)you can edit (/etc/passwd or /etc/shadow as appropriate), or you can change the password without supplying the old one as root by typing "passwd root". All Said n Done...ur Up with ur New Password.. Good Luck Brian McDan |
All times are GMT -5. The time now is 10:05 AM. |