Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26th February 2009, 12:36 PM
sanjiv Offline
Registered User
 
Join Date: Dec 2007
Posts: 64
where is the root password ?

I want to know where in the machine will the root password be stored...and how can i retrieve it ?? help please ....
Reply With Quote
  #2  
Old 26th February 2009, 12:38 PM
bob's Avatar
bob Online
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,334
Moved to General Support (Guides & How-to's is for posting your solutions to problems)
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #3  
Old 26th February 2009, 12:41 PM
darkshadow Offline
Registered User
 
Join Date: Feb 2009
Posts: 42
the users' passwords are stored in /etc/shadow but they are crypted

Fedora

Last edited by darkshadow; 10th March 2009 at 12:30 PM.
Reply With Quote
  #4  
Old 26th February 2009, 12:45 PM
aleph's Avatar
aleph Offline
Banned (for/from) behaving just like everybody else!
 
Join Date: Jul 2007
Location: Beijing, China
Posts: 1,307
The plain text passwords are never stored on disk. The encrypted passwords are in the file /etc/shadow.

Recovering the plain text password from the encrypted passwords is very difficult, because the encryption function is designed to be "one-way only" i.e. the inverse is much more expensive to calculate than the encryption function itself. It is still possible to use some space-time tradeoff (google "rainbow table") to accelerate brute-force attack but that may still not be practical.

I guess you lost the root password? Do a forum search for that. There are plenty of posts about it
__________________
I believe in nerditarianism. I read FedoraForum for the Fedora-related posts.
Reply With Quote
  #5  
Old 26th February 2009, 01:07 PM
JonathanR Offline
Registered User
 
Join Date: Aug 2007
Age: 41
Posts: 226
Quote:
Originally Posted by balkrishna View Post
during startup highlight fedora option in grub. press e - which stands for edit
You will see something like:
root (hd0,..
kernel .....
initrd .....

highlight kernel and press e again.
you will see something like
.... rhgb quiet
add single to it
finally u get :
..... rhgb quiet single
press ESC and press b. /*This will boot with that argument*/
This is known as the single user mode and grants you superuser access to your machine.
It will direct you to a command line screen with root access.
Now you can reset your password simply by:
passwd
/*And following the steps*/
Your root password has been changed.

If you have lost your grub password(in case u have 1) & root password reinstall grub and follow the same proceedure.
Doing a quick search, I found this post, which I think will help you.
Reply With Quote
  #6  
Old 26th February 2009, 01:22 PM
kudzu's Avatar
kudzu Offline
Registered User
 
Join Date: Jun 2008
Posts: 32
The root pass is encrypted with md5 and stored at /etc/shadow and i suggest that it is difficult to retrieve...
case1
so in the boot process at grub press any key so the system will not continue boot go to the fisrt option which is your linux boot and press e ( for edit ) then go to the kernel line and press e again.
leave all kernel options intact and and an 1 at the end.
Code:
kernel /boot/vmlinuz-2.6.27.15-78.2.23.fc9.i686 ro root=UUID=twqwqe rhgb quiet 1
enter or esc and then press b for the system to boot

it will boot in single user mode and you can change the pass using command
Code:
passwd root
type the new pass and reboot system....

case 2
you can do all the above considering grub is not pass protected
if it is pass protected boot from a cd/dvd go to rescue mode after a few yes and okays at the prompt type
Code:
 chroot  /mnt /sysimage
and
Code:
passwd root
type the new pass and all will be ok

PS: You can use a prog called john the ripper to retrieve the pass from the shadow file but better enter a new one with the above ways

Last edited by kudzu; 26th February 2009 at 01:28 PM.
Reply With Quote
  #7  
Old 26th February 2009, 01:44 PM
aleph's Avatar
aleph Offline
Banned (for/from) behaving just like everybody else!
 
Join Date: Jul 2007
Location: Beijing, China
Posts: 1,307
Quote:
Originally Posted by kudzu View Post
The root pass is encrypted with md5


In F10 the default is actually SHA512, making rainbow table attacks more difficult.

To determine which secure algorithm is used, look at the first $-delimited field: 1 for MD5, 6 for SHA512.
__________________
I believe in nerditarianism. I read FedoraForum for the Fedora-related posts.
Reply With Quote
Reply

Tags
password, root

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Root Password Jamwa Using Fedora 3 9th March 2009 12:17 PM
Root password SInani201 Using Fedora 7 23rd February 2008 02:30 AM
root password stored in plain text in /etc/crontab as "PASSPHRASE=<password>" line joelp Security and Privacy 7 8th July 2006 11:45 AM
Root Password gc2105 Using Fedora 2 11th November 2005 11:15 PM
Root password cyborg Using Fedora 2 29th May 2004 01:40 PM


Current GMT-time: 04:32 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat