Friday, January 18, 2008

recover Debian Etch root password

i just found this thing accidently.
i knew how to recover the root password of the Fedora Core,
but never thought that it wud work for Debian also.
the Fedora Core 7 DVD was in the DVD ROM, as i forgot to take it out.
so when i pressed the on button of my machine, the computer booted right
from the DVD and i really did not notice that.
so i got the screen of Fedora Core 7 where it asked me what i wanted to do?
obviously i did not want to instal it as i already had fully functional Debian Etch installed on my machine.
so driven by my curiosity
i booted it in rescue mode.
some messages came on the screen.

then issued the command

chroot /mnt/sysimage

and now issued the command

passwd

and now i was able to change the root password.

No comments: