LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Recover Root password (https://www.linuxquestions.org/questions/linux-newbie-8/recover-root-password-5007/)

Dannyb 08-02-2001 05:04 PM

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

acid_kewpie 08-02-2001 06:13 PM

boot linux in single user mode, and set the password there.

chris
xxxx

Supraj 08-03-2001 04:24 AM

i had also faced the same problem once and was forced to reinstall...how to boot in single user mode..pls give detail.

glj 08-03-2001 04:31 AM

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

trickykid 08-03-2001 08:12 AM

Code:

lilo: linux single
# passwd root
# Change password for root:

That should do it.

Supraj 08-03-2001 09:53 PM

thx a lot ..it's working....this site has really helped me a lot.

trickykid 08-04-2001 12:26 AM

Quote:

Originally posted by glj
Either that or edit the /etc/inittab to change the default runlevel to 1.
Just realized, that wouldn't work, you have to be root to edit it in the first place. Just a heads up to anyone else who might have the same problem and runs across this thread.

unixmaestro 10-25-2001 12:04 PM

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.