LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-17-2005, 10:59 PM   #1
killercrazyeyes
Member
 
Registered: Apr 2005
Location: El Cerrito CA, Bay Area
Distribution: Fedora Core 3, Mandrake 10.1
Posts: 31

Rep: Reputation: 15
Root user/password recovery/Fedora


So I have never done this and do not know where to start. My buddy's It Guy took off on them and they do not have the root user password or any user password for that matter for a machine that is running Fedora. It's at the user login prompt Right now.This is a file server they use and need to get into it. Can anyone please help.

I dont know what version of Fedora it is right now. Maybe Fedora Core 3 or earlier.

Thanks in advance.

Last edited by killercrazyeyes; 10-17-2005 at 11:11 PM.
 
Old 10-17-2005, 11:07 PM   #2
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Boot off the fedora installation CD and go into rescue mode (type 'linux rescue' at the boot splash screen I think). It should mount the system's root partition somewhere under /mnt. So lets say its under /mnt/sysimage you would then
Code:
vi /mnt/sysimage/etc/shadow
and remove the password hash for the root entry like so:
Code:
root:AHFfsdfslj3$/.3$:13048:0:99999:7:::
root::13048:0:99999:7:::
(note that I've put junk values in for that entry - its not my real root password hash )

You can do this with any LiveCD if you don't have your Fedora install CD.

Last edited by tkedwards; 10-17-2005 at 11:50 PM.
 
Old 10-17-2005, 11:24 PM   #3
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
You can append the "single" kernel option when you boot; that will put you into single-user mode (root access). Then "passwd" will change the password.

These links will help you:
* http://www.redhat.com/docs/manuals/e...ot-passwd.html
* http://linuxgazette.net/107/tomar.html
 
Old 10-17-2005, 11:50 PM   #4
killercrazyeyes
Member
 
Registered: Apr 2005
Location: El Cerrito CA, Bay Area
Distribution: Fedora Core 3, Mandrake 10.1
Posts: 31

Original Poster
Rep: Reputation: 15
tkedwards,

Would it be safe to say that I could do this with Knoppix. I have a version of knoppix right now on CD. Could I go ahead try this on my Kubuntu machine as a test? Thanks you so much for the fast reply you rule




 
Old 10-18-2005, 12:01 AM   #5
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Quote:
Originally posted by killercrazyeyes
tkedwards,

Would it be safe to say that I could do this with Knoppix.
Yes if you can boot Knoppix, you can mount your drive and edit the /etc/shadow file on there.
 
Old 10-19-2005, 01:14 AM   #6
killercrazyeyes
Member
 
Registered: Apr 2005
Location: El Cerrito CA, Bay Area
Distribution: Fedora Core 3, Mandrake 10.1
Posts: 31

Original Poster
Rep: Reputation: 15
Spoon,

How would I do this with Knoppix. Can you please explain a little more. what would the command to be to mount the drive once knoppix is running. What do I do to edit the /etc/shadow file

thanks

 
Old 10-19-2005, 02:00 AM   #7
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Once you've booted it knoppix will create mount points and fstab entries for all your partitions that it detects. So you should only have to right-click on the icon on the KDE desktop for whatever drive it is and select 'mount'. Or as root at a command line do:
Code:
mount /mnt/hda3
(replace hda3 with whatever your drive is). Once you've mounted it you can browse to the /mnt/hda3/etc/ folder and double-click on shadow. It should open in kwrite or something like that and you can then edit it like I described in my earlier post.
 
  


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
Root password recovery Jabber Linux - Security 6 11-27-2005 04:23 PM
Root Password Recovery ? Pravat Linux - Security 1 04-24-2005 04:46 AM
Password Recovery (not root) NewbGhostShells Linux - Newbie 3 12-17-2003 03:03 PM
root password recovery... roofy Linux - Software 7 05-06-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:11 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