LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices



Reply
 
Search this Thread
Old 06-29-2013, 01:22 PM   #1
PraveerD
LQ Newbie
 
Registered: Jul 2012
Posts: 16

Rep: Reputation: Disabled
Forogot root password


Hello all,

I am using Fedora 17. Did not use fedora for a long time. Now I want to use it but forgot the root account password which is asked when booting the operating system. How can I reset or retrieve it.

Thank you for reading.

Regards
 
Old 06-29-2013, 01:59 PM   #2
jazz5150
LQ Newbie
 
Registered: Jun 2013
Location: NL
Distribution: Kali-Linux, Debian
Posts: 20

Rep: Reputation: 15
I assume it is the root password you forgot and not the BIOS (if that is password protected).
The simple way is to go to runlevel one (single user mode) and reset the password.
Fedora actually has a very user friendly page explaining just how to do that ..
https://fedoraproject.org/wiki/How_t..._root_password
Cheers
 
1 members found this post helpful.
Old 06-29-2013, 02:11 PM   #3
vaibhavatalkar
LQ Newbie
 
Registered: Sep 2012
Location: bhopal
Distribution: RHEL
Posts: 28
Blog Entries: 2

Rep: Reputation: 0
Thumbs up

step 1)insert fedora cd/dvd
step 2)type rescue or linux rescue
step 3)prompts for language and keyboard,network
step 4)after that rescue mode mount your file systems in the read/write mode.
step 5)press Enter to get the shell prompt.
step 6) type chroot /mnt/sysimage
step 7)type passwd for giving new root password
step 8)exit
finish
hope u helpful but jazz give u link that also helpful in detail...
 
Old 06-29-2013, 04:10 PM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,105

Rep: Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720
Quote:
Originally Posted by vaibhavatalkar View Post
step 1)insert fedora cd/dvd
step 2)type rescue or linux rescue
step 3)prompts for language and keyboard,network
step 4)after that rescue mode mount your file systems in the read/write mode.
step 5)press Enter to get the shell prompt.
step 6) type chroot /mnt/sysimage
step 7)type passwd for giving new root password
step 8)exit
finish
hope u helpful but jazz give u link that also helpful in detail...
Please spell out your words. The link that jazz5150 is the preferred method, unless you're having disk/system problems. And your advice is a bit misleading and unnecessarily difficult. Booting from CD/DVD to do this isn't very user-friendly, since you'd then have to know the device/partition name, how to mount it manually, etc.

Even after following steps 1-5 here, steps 6 and 7 won't work to change the password, since the "/etc/shadow" file is mounted on the boot-media, which is the CD/DVD. You'd have to manually edit the shadow file on the mounted disk, to remove the password, then reboot.
 
Old 06-29-2013, 09:00 PM   #5
PraveerD
LQ Newbie
 
Registered: Jul 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thank you all for replying.

Quote:
Originally Posted by jazz5150 View Post
I assume it is the root password you forgot and not the BIOS (if that is password protected).
The simple way is to go to runlevel one (single user mode) and reset the password.
Fedora actually has a very user friendly page explaining just how to do that ..
https://fedoraproject.org/wiki/How_t..._root_password
Cheers
Well I did read that but I am confused with the part to enter recovery. It says edit any file and press the key. Which file I edit is not mentioned. Hence I am confused.

Also when I boot Fedora it gives me two options.

1. is to start fedora
2. its written something like Advanced fedora

When I choose 2 option it takes me to a screen where its written

Fedora blah blah (rescue mode)

So will the above mentioned thing help?

Regards
 
Old 06-29-2013, 10:00 PM   #6
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
Quote:
Originally Posted by TB0ne View Post
Please spell out your words. The link that jazz5150 is the preferred method, unless you're having disk/system problems. And your advice is a bit misleading and unnecessarily difficult. Booting from CD/DVD to do this isn't very user-friendly, since you'd then have to know the device/partition name, how to mount it manually, etc.

Even after following steps 1-5 here, steps 6 and 7 won't work to change the password, since the "/etc/shadow" file is mounted on the boot-media, which is the CD/DVD. You'd have to manually edit the shadow file on the mounted disk, to remove the password, then reboot.
I assumed that if you entered a chroot environment the /etc/shadow would be that of the root of the dir that you had choot'd to.

I understand where you are coming from with the 'u' issue, but really do you have to be such a Pedant?
I have noted that you 'open' with this often, quite tiresome.
I am certain my local dialect would 'offend' you. Should a "'txtalect'" be any worse?
Please do not use the trivial as arms.
 
1 members found this post helpful.
Old 06-30-2013, 12:24 AM   #7
jazz5150
LQ Newbie
 
Registered: Jun 2013
Location: NL
Distribution: Kali-Linux, Debian
Posts: 20

Rep: Reputation: 15
I can not explain it any better than the Fedora site:
-Start the computer
-at the boot screen hold either the CTRL or ESC key (whichever is needed to get you into the boot loader menu)
-choose the entry you want to modify: that would be the entry which you would normally select
-press e
-at the end of the line enter either "single" or "1"
-press ENTER
-press b

Now you are in single user mode

etc.

How to change the root password from the rescue mode is also described at the Fedora site.
 
1 members found this post helpful.
Old 06-30-2013, 12:32 PM   #8
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,105

Rep: Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720Reputation: 2720
Quote:
Originally Posted by Firerat View Post
I assumed that if you entered a chroot environment the /etc/shadow would be that of the root of the dir that you had choot'd to.
..providing, of course, that a new user had correctly identified the one partition (out of a possible many), that contained the /etc/shadow file in the first place.
Quote:
I understand where you are coming from with the 'u' issue, but really do you have to be such a Pedant? I have noted that you 'open' with this often, quite tiresome. I am certain my local dialect would 'offend' you. Should a "'txtalect'" be any worse?
Yes...read the LQ Rules and guidelines about posting, they specifically mention text-speak, and advise against it. If you don't like it, or people being reminded of it, then please tell a moderator. Trying to decipher someones text-speak isn't pleasant for anyone, anytime. And your local dialect is of no concern, since this is a English-only forum.
Quote:
Please do not use the trivial as arms.
No idea what you even mean here.

Last edited by TB0ne; 06-30-2013 at 01:07 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
liveCD installer asks for root password, but means the liveCD's root password newbiesforever VectorLinux 4 04-23-2013 02:16 PM
i forget my root password. how to login in root account with new password in red hat. balajiraja Linux - Desktop 3 08-22-2012 02:41 AM
GNOME: Gain privileges using current user's password instead of root's password maxkukartsev Fedora 5 02-10-2012 10:46 AM
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 11:28 PM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 05:11 AM


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