LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Different way to recover the root password (https://www.linuxquestions.org/questions/linux-newbie-8/different-way-to-recover-the-root-password-944825/)

ravi_nandula 05-14-2012 02:05 AM

Different way to recover the root password
 
Hi team,

I am new to linux,coming to my question let me tell what I know.

To recover a root user password ....one should reboot the system and enter into grub menu and enter into single user mode and give passwd reset cmd to reset the root user password.This is the way I know.

My question is there any other way to recover the root user passwd?????????

Accrio 05-14-2012 02:16 AM

Below link gives some method -
http://cities.lk.net/lost_password.htm

acid_kewpie 05-14-2012 02:16 AM

you can NEVER recover the root password. You can change it but you can't find out what it is without breaking the password encryption.

Another way would be to mount the system from a live disk or other system, but they're all harder than using single user mode. You can't do it without local machine access by design, unless you've already got a system like sudo configured where you can become root from a different account without knowing the root password. does "sudo -i" work?

blue_print 05-14-2012 02:38 AM

You cannot recover the root password unless you boot the system into single user mode or rescue mode

lithos 05-14-2012 04:16 AM

Quote:

Originally Posted by blue_print (Post 4677769)
You cannot recover the root password unless you boot the system into single user mode or rescue mode

Your unless is mistaken here.
You can't. Simple and straightforward.
There is no unless ...

It's like acid_kewpie wrote
Quote:

Originally Posted by acid_kewpie (Post 4677756)
you can NEVER recover the root password. You can change it but you can't find out what it is without breaking the password encryption.

....



All times are GMT -5. The time now is 08:19 PM.