LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-05-2009, 09:51 PM   #1
requiemnoise
LQ Newbie
 
Registered: May 2008
Posts: 21

Rep: Reputation: 15
grub 2 password


I can't seem to find any documentation on Grub2. Does Grub2 still has a "lock" feature? I looked everywhere, but I can't find this information. I'm not going to rely on the bios password to lock the machine down. This is ridiculous. Am I better off going back to the grub legacy?

Thanks
 
Old 11-06-2009, 06:57 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
http://www.gnu.org/software/grub/man....html#Security

http://www.gnu.org/software/grub/man...node/lock.html

http://www.gnu.org/software/grub/man....html#password


be aware that if I can get to your computer and case is unlocked I can still bypass any grub passwd. (I do not want to just letting you know look for other ways to protect yourself if local users are a problem)
 
Old 11-06-2009, 11:24 PM   #3
requiemnoise
LQ Newbie
 
Registered: May 2008
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by aus9 View Post
http://www.gnu.org/software/grub/man....html#Security

http://www.gnu.org/software/grub/man...node/lock.html

http://www.gnu.org/software/grub/man....html#password


be aware that if I can get to your computer and case is unlocked I can still bypass any grub passwd. (I do not want to just letting you know look for other ways to protect yourself if local users are a problem)
That is grub 0.x (legacy), not grub 1.x to 2.0.
thanks
 
Old 11-08-2009, 05:45 PM   #4
requiemnoise
LQ Newbie
 
Registered: May 2008
Posts: 21

Original Poster
Rep: Reputation: 15
The latest version of Grub doesn't have a lock feature. I don't know why so many distros are making people upgrade to this useless version. I downgraded to the legacy. Everything is working like a charm.
 
Old 11-09-2009, 08:15 AM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
my apols my links go to 0.97 manual....grrrr

maybe you could post to the mailing list? or irc?

http://grub.enbug.org/IrcChannels

Last edited by aus9; 11-09-2009 at 08:20 AM.
 
Old 11-09-2009, 08:21 AM   #6
JamesChamberlain
Member
 
Registered: Sep 2009
Location: Wirral, UK
Distribution: Red Hat Enterprise Linux / Fedora 11
Posts: 47

Rep: Reputation: 18
grub passwords?

Generate one with:

# grub-md5-crypt

copy the encryption hash

edit /boot/grub/grub.conf

and put:

password --md5 <insert encryption hash>

Here's an example:

title Ubuntu, kernel 2.6.8.1-2-386 (recovery mode)
root (hd1,2)
kernel /boot/vmlinuz-2.6.8.1-2-386 root=/dev/hdb3 ro single
initrd /boot/initrd.img-2.6.8.1-2-386
password --md5 $1$w7Epf0$vX6rxpozznLAVxZGkcFcs.

See the final entry, this will stop ubuntu from being editied (can still be booted..)

Last edited by JamesChamberlain; 11-09-2009 at 08:22 AM.
 
Old 11-10-2009, 10:24 AM   #7
requiemnoise
LQ Newbie
 
Registered: May 2008
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by JamesChamberlain View Post
grub passwords?

Generate one with:

# grub-md5-crypt

copy the encryption hash

edit /boot/grub/grub.conf

and put:

password --md5 <insert encryption hash>

Here's an example:

title Ubuntu, kernel 2.6.8.1-2-386 (recovery mode)
root (hd1,2)
kernel /boot/vmlinuz-2.6.8.1-2-386 root=/dev/hdb3 ro single
initrd /boot/initrd.img-2.6.8.1-2-386
password --md5 $1$w7Epf0$vX6rxpozznLAVxZGkcFcs.

See the final entry, this will stop ubuntu from being editied (can still be booted..)
That only works with legacy. Also, the password entry doesn't belong there. It has to be located above. For legacy, your will need to use and replace with the "lock" command. Apparently, the lock feature isn't available for the latest version. I will stick with 0.97 until they are ready.
 
Old 12-04-2009, 09:19 PM   #8
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

new link may help?
http://grub.enbug.org/Authentication
 
  


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
how to change root password without knowing the grub password ramesh.mimit Red Hat 8 10-15-2011 05:12 AM
change Root Password even if the password in the grub is also set sheelnidhi Linux - General 6 08-30-2006 07:27 AM
GRUB Password sunlinux Linux - Security 4 08-16-2006 10:47 AM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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