LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   recovering root password (https://www.linuxquestions.org/questions/linux-newbie-8/recovering-root-password-861381/)

rkd7474 02-08-2011 06:09 AM

recovering root password
 
how can i recover rooy password in redhat linux..

prodev05 02-08-2011 06:12 AM

Recover by following this or this

catkin 02-08-2011 11:52 AM

There is (and should be!) no way to "recover" the root password -- only to remove it or set it to a known value, which is what the linked pages describe.

prodev05 02-08-2011 11:55 AM

Quote:

Originally Posted by catkin (Post 4252144)
There is (and should be!) no way to "recover" the root password -- only to remove it or set it to a known value, which is what the linked pages describe.

catkin you are correct. We can only reset the password to a new one. :)

Aquarius_Girl 02-08-2011 11:36 PM

In fact there is no way to recover "any" password in Linux!

yasaswisrikanth 02-09-2011 12:18 AM

we can recover the password in redhat by:
*Root Password can be recovered in a
specialized troubleshooting mode (i.e. init 1).
*init 1 level provides a shell (i.e. sh) without logging in.

# procedure:


1.Restart the system

2.In the splash screen Select RedHat Enterprise Linux
Press 'e'

3.Select Kernel /vmlinuz-2.6.9-5.EL ro root=LABEL=/rhgb quiet

4.Press 'e' to edit

5.Edit Kernel /vmlinuz-2.6.9-5.EL ro root=LABEL=/rhgb quiet 1

6.press enter

7.Press 'b' to boot with the selected run level

directly you will get shell prompt to assign the root password

8.sh-3.00#passwd root

vinodvb 02-09-2011 01:42 AM

Quote:

Originally Posted by yasaswisrikanth (Post 4252693)
we can recover the password in redhat by:
*Root Password can be recovered in a
specialized troubleshooting mode (i.e. init 1).
*init 1 level provides a shell (i.e. sh) without logging in.

# procedure:


1.Restart the system

2.In the splash screen Select RedHat Enterprise Linux
Press 'e'

3.Select Kernel /vmlinuz-2.6.9-5.EL ro root=LABEL=/rhgb quiet

4.Press 'e' to edit

5.Edit Kernel /vmlinuz-2.6.9-5.EL ro root=LABEL=/rhgb quiet 1

6.press enter

7.Press 'b' to boot with the selected run level

directly you will get shell prompt to assign the root password

8.sh-3.00#passwd root

As highlighted by Anisha, thats again a reset and not recovery.

prodev05 02-09-2011 02:20 AM

Yes there is a method to recover the root password without resetting it. But that is not a standard procedure. :)

Aquarius_Girl 02-09-2011 02:25 AM

Quote:

Originally Posted by prodev05 (Post 4252748)
Yes there is a method to recover the root password without resetting it.

Be kind enough to explain the method here, even if it is not a standard one


All times are GMT -5. The time now is 10:46 PM.