DIGIT-ARC read-only archive · snapshot: July 23, 2026

forgot root password

8 posts · originally from https://geek.digit.in/community/threads/forgot-root-password.30770/

C
cyberzook Original post #1
Jun 24, 2006 at 9:13 AM
Is there any way to reset root password ? My friend has forgotten it. Want to avoid re-install..
kalpik
kalpik #2
Jun 24, 2006 at 9:38 AM
Boot into runlevel 3 and do sudo passwd root. Then just enter the new password.
JGuru
JGuru #3
Jun 24, 2006 at 1:15 PM
After booting if you want to find out in what run-level you are, you can type 'runlevel'
at the Tterminal Window. That gives your current runlevel. You can switch to a
different runlevel by giving the command ' telinit <runlevel>' .In your case 'telinit 3'
at the Terminal Window. This command terminates all the processes and boots again
at the specified runlevel.
C
Jun 24, 2006 at 2:25 PM
tried these but..

firstly...telinit needs su mode to run
2nd ....."sudo passwd root" needs root password itself to run
M
Jun 24, 2006 at 4:09 PM
See if this thread works *www.thinkdigit.com/forum/showthread.php?t=19197&highlight=root+password
BTW, please make a search. Lot of threads exist on the same topic.
Kniwor
Kniwor #6
Jun 25, 2006 at 4:41 PM
if u have a bootable CD, then boot, navigate to /etc and open the shadow file, delete the hashes in front of the root and save the file, dont forget to take backup...

this will empty your root password....
C
Jul 2, 2006 at 10:01 AM
Sorry for confirming late but this works great !

Thanks to swatkat

swatkat said:
Hi,
Check out this page:-
*aplawrence.com/Linux/lostlinuxpassword.html
nitish_mythology
Jul 6, 2006 at 7:10 AM
I recoved my root password in Ubuntu....
Booted into Ubuntuery Recovery Mode
Then issued a command, i think it was passwd Root
After tht Typed the new one!


Everything is done..............