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 08-05-2007, 01:14 AM   #1
karnati
LQ Newbie
 
Registered: Dec 2006
Posts: 4

Rep: Reputation: 0
What if administrative password is lost in Fedora core5?


Dear friends

I have a system running on fedora core5. I have installed 2 multi port pci cards with great difficulty after working on it for two months. We have added nearly 6 text terminals to this system. There are nearly 10 users. We have user IDs and passwords for these users.

Now i forgot administrative user ID and password.
Can any one help me how to access administrative rights for creating users or for other administrative works. I can not afford to reload fedora core5 again because I will loose all the applications I added. And also now I forgot how to add multiport pci cards.

Thank you

Thomas
 
Old 08-05-2007, 01:44 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
By administrative password, I am guessing you mean the password for the root account. If you can boot the computer from a CD, then you can use a live CD to save yourself.

Boot to the live CD of your choice. If you are unfamiliar with live CDs, KNOPPIX is a good choice. If you use KNOPPIX, mount points will already be created for you. Mount your root partition read-write. I'll assume it is mounted to /mnt/hda1. If not adjust the following command accordingly. Run the following as root:

Code:
chroot /mnt/hda1 passwd root
This will allow you to reset the root password. When you reboot you can login to the root account with it.

As a security matter, you need to realize that if you can do this, then anybody else with physical access to the computer can do it too!

Last edited by blackhole54; 08-05-2007 at 01:46 AM.
 
Old 12-21-2009, 11:15 AM   #3
Novatian
Member
 
Registered: Feb 2008
Location: Australia
Distribution: Mint 17 MATE 64bit and 32bit, TAILS, Fedora 20, Android, Manjaro.
Posts: 613

Rep: Reputation: 33
After doing this, can you simply type one in?
 
Old 12-23-2009, 11:57 AM   #4
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by Novatian View Post
After doing this, can you simply type one in?
Yes. You will be prompted twice to verify you haven't made a mistake. You will not see anything as you type. After you have entered the new password twice it will tell you whether it succeeded. If the two passwords you typed didn't match, just repeat the command and try again.
 
Old 12-23-2009, 01:55 PM   #5
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 492

Rep: Reputation: 50
I'm not sure it's as easy as this...
Since the liveCD boot into its own system, even if you mount the '/' partition, the passwd change won't affect you fedora system. Maybe you need to changeroot into your system? Or by simply removing the proper field of the "/etc/shadow" file?
 
Old 12-23-2009, 02:02 PM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
Quote:
Originally Posted by jf.argentino View Post
I'm not sure it's as easy as this...
Since the liveCD boot into its own system, even if you mount the '/' partition, the passwd change won't affect you fedora system. Maybe you need to changeroot into your system? Or by simply removing the proper field of the "/etc/shadow" file?
Quote:
Originally Posted by blackhole54 View Post
Code:
chroot /mnt/hda1 passwd root
Apperantly the forum software does not count quotes as message contents.
 
Old 12-28-2009, 01:20 PM   #7
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by jf.argentino View Post
Or by simply removing the proper field of the "/etc/shadow" file?
That will work also. It's a matter of personal preference. And which you believe to be easier. And less error prone. (I've always been rather scared of the ways a newbie might mangle /etc/shadow or /etc/passwd. Heck, why limit it to newbies? I've done my share of "fat fingering"! ) There is also the possibility that a person may forget to assign a new password after booting back into the installed system. That could be very bad!

Probably since that (more than 2 year old!) post I've been told that the chroot method may not always work if there is too much difference between the live CD system and the installed system. But I have never had any problems with chrooting.

Last edited by blackhole54; 12-28-2009 at 01:22 PM.
 
  


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
Editing Hyperlink in Fedora Core5 Yash Pal Linux - Desktop 1 05-25-2007 09:49 AM
administrative programs ask for user password? efm Ubuntu 1 02-05-2007 05:11 AM
Fedora Core5 Issue linuxali Fedora 2 09-01-2006 12:10 AM
Fedora core5-RPM eror dojo Linux - Software 7 08-20-2006 10:02 AM
fedora core5 comparing with suse10 samba4010 Linux - Distributions 1 08-06-2006 01:09 AM


All times are GMT -5. The time now is 08:08 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration