LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-14-2012, 02:05 AM   #1
ravi_nandula
Member
 
Registered: Sep 2011
Posts: 81

Rep: Reputation: Disabled
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?????????
 
Old 05-14-2012, 02:16 AM   #2
Accrio
LQ Newbie
 
Registered: Mar 2007
Posts: 8

Rep: Reputation: 1
Below link gives some method -
http://cities.lk.net/lost_password.htm
 
Old 05-14-2012, 02:16 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
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?
 
Old 05-14-2012, 02:38 AM   #4
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
You cannot recover the root password unless you boot the system into single user mode or rescue mode
 
Old 05-14-2012, 04:16 AM   #5
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by blue_print View Post
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 View Post
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.

....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] How to recover root password ovod88 Linux - Newbie 11 04-20-2010 11:34 PM
How to recover my root password? tahrenyie85 Linux - Newbie 11 01-03-2008 04:59 PM
How to recover the root password? hg7688 Linux - Software 3 07-25-2006 03:20 AM
Is there any way to recover my root password... deepu_ks Linux - Security 4 08-03-2005 10:41 AM
Recover Root password Dannyb Linux - Newbie 7 10-25-2001 12:04 PM

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

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

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