Recover ROOT password

Taking care of your Linux box.
Post Reply
telenor
Havaldaar
Posts: 104
Joined: Tue Mar 29, 2005 11:08 am

Recover ROOT password

Post by telenor »

How can i recover the root password in RH Linux AS.
Qadri-409
Battalion Havaldaar Major
Posts: 286
Joined: Sun May 09, 2004 4:16 pm
Location: Peshawar
Contact:

Re: Recover ROOT password

Post by Qadri-409 »

telenor wrote:How can i recover the root password in RH Linux AS.

on the grub splash screen slect the kernel linux
press 'e' to edit it ...you might have to press 'e' twice ..see the messages at bottom
add -s in the end
then 'b' to reboot it in the single user mode it will drop you on the shell

another method is to boot from CD
boot : linux rescue
and press enter

it will also take you to the shell :)

take care
M Shahzad Qadri
ubaidkt
Lance Naik
Posts: 15
Joined: Sat Jan 08, 2005 8:34 am
Location: Kohat
Contact:

thats nice

Post by ubaidkt »

in university when we study linux network programming. our teacher tell us this technique but later i forget it. I want to ask this question on linuxpakistan.net. But i got answare befor question.

anyhow thankx for this tip.
I Wish To Be Linux Programmer
whizkid
Cadet
Posts: 8
Joined: Sat Oct 16, 2004 8:18 pm
Location: Karachi
Contact:

Post by whizkid »

'linux rescue' is an easy way... you can mount and chroot to your liunux and change the root password. There is little or no chance of actually 'recovering' your old password.
ubaidkt
Lance Naik
Posts: 15
Joined: Sat Jan 08, 2005 8:34 am
Location: Kohat
Contact:

Post by ubaidkt »

Qadri Wrote/
on the grub splash screen slect the kernel linux
press 'e' to edit it ...you might have to press 'e' twice ..see the messages at bottom
add -s in the end
then 'b' to reboot it in the single user mode it will drop you on the shell



its dosn't work. but by pressing a and then enter -s work fine.
I Wish To Be Linux Programmer
Post Reply