1825678 Members
3689 Online
109686 Solutions
New Discussion

Recover root password

 
Jagadesh
Frequent Advisor

Recover root password

How can i recover a root password in RedHad when i use lilo as a bootloader.

Thanks
Jagadesh
2 REPLIES 2
Huc_1
Honored Contributor

Re: Recover root password

Hi,

At Lilo boot sreen type "control x"

then type a tab
then type S after the linux prompt like

Linux S

This should do a minimal boot and leave you in single user mode as user root without asking for a password.

From there type
#passwd

and change to a password you are able to remember more easly

Hope this still is true have not tryed this for a long long time... use grub theses days.

Tell us if it still is true .

Jean-Pierre
Smile I will feel the difference
Huc_1
Honored Contributor

Re: Recover root password

Hi,

I remember I had a laptop that still had lilo RedHat linux 8.0 So I gave it a try It still works and go like this

at lilo boot image type "Control x"
you are then put at a screen prompt

boot:

there type

linux S

this will get you in single user mode as root

at the # type

#passwd

answer questions about new password and retype

when finish at # prompt enter "^d"

this will continue the boot sequence to the level you have defined in /etc/inittab as your default usualy level 3 or 5

Hope this more complete scenario helps you out.

In fact you can modify this behaviour in lilo.conf best is to read man page for lilo.conf.

Jean-Pierre
Smile I will feel the difference