Fedora Linux Support Community & Resources Center
  #1  
Old 11th April 2012, 05:11 AM
axel2078 Offline
Registered User
 
Join Date: Jun 2010
Location: Fairview Heights, IL
Posts: 74
linuxchrome
[SOLVED] Fedora 16 grub password problem

I just installed Fedora 16 on my laptop a short while ago. During the installation when it gives you the option to set a password for grub, I checked the box and gave it a password. I noticed a few minutes ago that when I try to edit the kernel parameters during the grub stage, it asks me for a username and then a password. When I set this up, it never asked me for a username. I've tried my username with my password and I've tried root with it's password, but neither work. What's going on here?

Last edited by axel2078; 12th April 2012 at 02:43 AM.
Reply With Quote
  #2  
Old 11th April 2012, 09:45 AM
Dutchy Offline
Registered User
 
Join Date: Aug 2011
Posts: 1,045
linuxfirefox
Re: Fedora 16 grub password problem

I don't know about the default grub user that anaconda creates, but my manually created grub user is revealed by the following command:
Code:
cat /etc/grub.d/00_header | grep user
Reply With Quote
  #3  
Old 11th April 2012, 10:47 AM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 912
linuxfirefox
Re: Fedora 16 grub password problem

I think that anaconda generates a user for grub with name 'root'; I can't remember whether you get chance to set a specific password or whether it just picks up the system root password.

Also, beware that the keymap at the grub screen is the default US keyboard layout, which might differ from the layout you expect to use. (I only mention this because that trips me up: I'm used to the UK layout which has various punctuation symbols in different places, including some that I use in passwords!)
Reply With Quote
  #4  
Old 11th April 2012, 03:22 PM
axel2078 Offline
Registered User
 
Join Date: Jun 2010
Location: Fairview Heights, IL
Posts: 74
windows_xp_2003firefox
Re: Fedora 16 grub password problem

Quote:
Originally Posted by marriedto51 View Post
I think that anaconda generates a user for grub with name 'root'; I can't remember whether you get chance to set a specific password or whether it just picks up the system root password.

Also, beware that the keymap at the grub screen is the default US keyboard layout, which might differ from the layout you expect to use. (I only mention this because that trips me up: I'm used to the UK layout which has various punctuation symbols in different places, including some that I use in passwords!)
I thought this might be the case, so I tried using root as the user and the password that I set up for root during the account creation, but it didn't work. Now that I think about it, I created a different password for grub during the installation than I used for root's password. Last night I was trying my account with my password and root's account with root's password, but I didn't try using root as the username with the password that I set for grub. I wonder if that would work?

---------- Post added at 09:22 AM ---------- Previous post was at 07:59 AM ----------

On a side note, if trying root as the username with the password I set for grub (not root) doesn't work, how can I recover grub so that it's no longer password protected?
Reply With Quote
  #5  
Old 11th April 2012, 04:31 PM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 912
linuxfirefox
Re: Fedora 16 grub password problem

Quote:
Originally Posted by axel2078 View Post
On a side note, if trying root as the username with the password I set for grub (not root) doesn't work, how can I recover grub so that it's no longer password protected?
The quick and easy way is to edit the file /boot/grub2/grub.cfg and comment out (with '#' characters) or remove the lines that look like
Code:
set superusers="root"
password_pbkdf2 root grub.pbkdf2.sha512.on-and-on-and-on-and-...
You can alternatively edit the file /etc/grub.d/01_users, and then run the command
Code:
grub2-mkconfig -o /boot/grub2/grub.cfg
(as root).
Reply With Quote
  #6  
Old 11th April 2012, 06:09 PM
axel2078 Offline
Registered User
 
Join Date: Jun 2010
Location: Fairview Heights, IL
Posts: 74
windows_xp_2003firefox
Re: Fedora 16 grub password problem

Quote:
Originally Posted by marriedto51 View Post
The quick and easy way is to edit the file /boot/grub2/grub.cfg and comment out (with '#' characters) or remove the lines that look like
Code:
set superusers="root"
password_pbkdf2 root grub.pbkdf2.sha512.on-and-on-and-on-and-...
I actually tried this last night (commented out only the password line), but I didn't use the command to rebuilt grub afterward before I rebooted. Was I supposed to? There was no change once my system rebooted.
Reply With Quote
  #7  
Old 11th April 2012, 08:01 PM
marriedto51 Offline
Registered User
 
Join Date: Jul 2009
Location: England, UK
Posts: 912
linuxfirefox
Re: Fedora 16 grub password problem

If you edited /boot/grub2/grub.cfg, you should not need to do anything else to see the change.

If you edit the files in /etc/grub.d, or change /etc/default/grub, then you need to run grub2-mkconfig before you see the change(s).

Make sure you remove the "set superusers" line as well as the password line: then the grub command line should be available to anyone.
Reply With Quote
  #8  
Old 12th April 2012, 02:42 AM
axel2078 Offline
Registered User
 
Join Date: Jun 2010
Location: Fairview Heights, IL
Posts: 74
windows_xp_2003firefox
Re: Fedora 16 grub password problem

Quote:
Originally Posted by marriedto51 View Post
If you edited /boot/grub2/grub.cfg, you should not need to do anything else to see the change.

If you edit the files in /etc/grub.d, or change /etc/default/grub, then you need to run grub2-mkconfig before you see the change(s).

Make sure you remove the "set superusers" line as well as the password line: then the grub command line should be available to anyone.
Thanks a lot for the info. I'll try this later and post my results.

---------- Post added at 08:42 PM ---------- Previous post was at 02:04 PM ----------

UPDATE: It seems my earlier theory was correct. Although the Anaconda installer didn't tell you it was creating a user account when you opt to password protect grub, it did; it created an account called root. The password I provided for grub was different than the password I supplied when the root account was created. That's what tripped me up. When I tried to edit the boot menu and grub asked me for a username, I tried my username with my password and root with root's password, but what I needed was the username root with grub's password.
Reply With Quote
Reply

Tags
fedora, grub, password, problem

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
Grub problem: After installing Fedora 15, I can't boot win xp from grub oliveryty Using Fedora 12 21st July 2011 11:21 AM
grub password ahmad_fedora Security and Privacy 9 5th May 2008 03:37 AM
fedora 7 password install problem frankje Installation, Upgrades and Live Media 1 23rd July 2007 10:09 AM
Grub password? bigman Using Fedora 2 19th July 2004 12:17 AM


Current GMT-time: 07:02 (Friday, 24-10-2014)

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
Adrano - West Saint Paul Instagram Photos - Guigang Photos on Instagram