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 1st August 2006, 11:56 AM
Fault Offline
Registered User
 
Join Date: Jul 2006
Posts: 20
Is there a way to recover root passwords?

yea silly question.


I changed my root password then placed the new password in a protected file with all my other passwords and logged off for the night. however to my dismay gedit never saved the file even after saying it saved.

It saved the wording that identified the password as root password but didn;t save th epassword it's self.


The only other alternitive I see is to reinstall ( Yet Again ) Fedora Core 5.


SO please offer another suggestion.
Reply With Quote
  #2  
Old 1st August 2006, 12:16 PM
Spoon! Offline
Registered User
 
Join Date: Aug 2005
Location: Hell
Posts: 758
Why do you need to "recover" it? (That's really hard.) Why not just change it?

Boot into single-user mode:
* when GRUB comes on, press a key to enter GRUB, and press "a"
* add " single" to the kernel arguments to boot into single-user mode
* use "passwd" to change password
Reply With Quote
  #3  
Old 1st August 2006, 12:22 PM
ilja Offline
Registered User
 
Join Date: Apr 2004
Location: Euregio
Posts: 3,613
What Spoon suggests, but instead of doing passwd, you can view the file /etc/shadow take the first line , it contains the root password. It is between the $ and : . Now you can bruteforce it. There a lot of apps our there, to make it.
It takes a while though
Reply With Quote
  #4  
Old 1st August 2006, 01:20 PM
ccrvic Offline
Registered User
 
Join Date: Apr 2006
Posts: 1,092
Quote:
Originally Posted by ilja
What Spoon suggests, but instead of doing passwd, you can view the file /etc/shadow take the first line , it contains the root password. It is between the $ and : . Now you can bruteforce it. There a lot of apps our there, to make it.
It takes a while though
It takes an unfeasibly long time, unless you've got dictionary passwords.

One of the servers I run is a Dell PowerEdge 1850. This has twin 2.8GHz Xeons in it, and 2GB of RAM. And it's idle more often than not. So plenty of grunt for jobs like this.

I regularly run john against the shadow file (to make sure users aren't putting rubbish passwords in). The ones I've cracked so far get cracked within about 10 seconds; the rest (i.e. the ones I've generated) have sustained this attack for 3 weeks solid.

Brute-forcing a password on a modern machine is a pointless exercise unless you're trying to get in surreptitiously - in which case, how you do it is your problem, 'cos I'm not going to help you.

Vic.
Reply With Quote
  #5  
Old 1st August 2006, 01:33 PM
dfister29's Avatar
dfister29 Offline
Registered User
 
Join Date: Jul 2005
Location: USA
Age: 37
Posts: 41
I would follow Spoon's method. It's fast, it's easy, and it works.

Quote:
The only other alternitive I see is to reinstall ( Yet Again ) Fedora Core 5.
You will find that as you progress with Linux (Fedora, Ubuntu, Suse, etc.) or any *nix, there are very few times you should ever need to reinstall a system from scratch. All of your configuration files are plain text documents which can be altered from a bootable linux environment like the FC5 recovery CD. It's even possible to delete or completely mangle your kernel and you can still re-install or fix just the kernel without reinstalling your entire system. I'm not saying it's always easy, but there are alot more tools available to recover a linux system without restoring from backup or reloading from scratch.
Reply With Quote
  #6  
Old 1st August 2006, 01:49 PM
ilja Offline
Registered User
 
Join Date: Apr 2004
Location: Euregio
Posts: 3,613
You can use Spoon's method, but you will not recover, but delete the password. You'll be able to use the system, but the password is lost forever.
Reply With Quote
  #7  
Old 1st August 2006, 01:59 PM
Fault Offline
Registered User
 
Join Date: Jul 2006
Posts: 20
o cool I didn;t know that. ill give it a try

and Ilja.

NO possible way to brute my box unless I have a few months of time.


My password is horrendously long and uses every known usable character NUMEROUS times.

Last edited by Fault; 1st August 2006 at 02:02 PM.
Reply With Quote
  #8  
Old 1st August 2006, 02:59 PM
jvroig Offline
Registered User
 
Join Date: May 2006
Posts: 261
Quote:
NO possible way to brute my box unless I have a few months of time.

My password is horrendously long and uses every known usable character NUMEROUS times.
If I may say so, that is so cool. I'll do that for the superuser in my ERP. Thanks.
__________________
AMD Desktop:
"Thuban" Phenom II X6 1090T @ 4GHz, 8GB RAM, Radeon 4770, 320GB + 1TB HDDs
Dual-booting: Fedora 14 64-bit + Windows XP

ASUS EEE PC 1215T
AMD V105 1.2GHz, 2GB RAM, 320GB HDD
Fedora 14 64-bit

Registered Linux User #419754
Reply With Quote
  #9  
Old 1st August 2006, 07:02 PM
Fault Offline
Registered User
 
Join Date: Jul 2006
Posts: 20
All it takes is one brute force to make you secure everything.


Last year I dared someone to exploit my phpBB forums and they couldnbt do it so instead the brute forced my root login, since then I use as secure as passwords as I casn think of


and thats the help you guys gave worked. al though the first boot try i did aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaa like a dummy LOL
Reply With Quote
  #10  
Old 2nd August 2006, 02:05 AM
dfister29's Avatar
dfister29 Offline
Registered User
 
Join Date: Jul 2005
Location: USA
Age: 37
Posts: 41
I'm happy to hear things are working for you again!
Reply With Quote
Reply

Tags
passwords, recover, 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
Cant Recover Root Password, Not Even in Single Mode cteel2004 Using Fedora 1 26th December 2008 08:43 PM
how recover root password jani1982 Security and Privacy 1 12th April 2008 06:24 PM
A way to deploy new root passwords? tashirosgt Security and Privacy 3 23rd October 2005 05:02 AM
How to use debugfs to recover partition's root dir. fnxweb Using Fedora 2 25th June 2005 06:40 PM
two root passwords mufeed_usman Security and Privacy 9 22nd January 2005 04:50 AM


Current GMT-time: 03:29 (Sunday, 26-05-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