LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2011, 06:09 AM   #1
rkd7474
LQ Newbie
 
Registered: Feb 2011
Location: allahabad
Posts: 1

Rep: Reputation: 0
recovering root password


how can i recover rooy password in redhat linux..
 
Old 02-08-2011, 06:12 AM   #2
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
Recover by following this or this
 
Old 02-08-2011, 11:52 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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.
 
Old 02-08-2011, 11:55 AM   #4
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
Quote:
Originally Posted by catkin View Post
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.
 
Old 02-08-2011, 11:36 PM   #5
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
In fact there is no way to recover "any" password in Linux!
 
Old 02-09-2011, 12:18 AM   #6
yasaswisrikanth
LQ Newbie
 
Registered: Nov 2010
Location: India
Distribution: Linuxmint
Posts: 15

Rep: Reputation: 0
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
 
Old 02-09-2011, 01:42 AM   #7
vinodvb
LQ Newbie
 
Registered: Dec 2010
Location: Bangalore
Distribution: RHEL
Posts: 25

Rep: Reputation: 6
Quote:
Originally Posted by yasaswisrikanth View Post
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.
 
Old 02-09-2011, 02:20 AM   #8
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
Yes there is a method to recover the root password without resetting it. But that is not a standard procedure.
 
Old 02-09-2011, 02:25 AM   #9
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by prodev05 View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recovering root password in debian with grub bootloader JSR_tuxbox Linux - Newbie 4 12-08-2007 11:23 PM
Recovering root password in Redhat linux nthillaiarasu Linux - General 2 11-21-2007 07:11 AM
recovering root password gentoo lilo farhan Linux - Security 1 03-22-2006 08:57 PM
recovering root password isaacvimal Red Hat 3 04-02-2005 08:47 AM
recovering root password in rh using lilo farhan Linux - General 1 03-01-2003 08:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration