LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 11-05-2009, 10: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, 07:57 AM   #2
aus9
Senior Member
 
Registered: Oct 2003
Location: Australia
Posts: 4,220

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-07-2009, 12:24 AM   #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, 06: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, 09:15 AM   #5
aus9
Senior Member
 
Registered: Oct 2003
Location: Australia
Posts: 4,220

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 09:20 AM.
 
Old 11-09-2009, 09: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 09:22 AM.
 
Old 11-10-2009, 11: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, 10:19 PM   #8
aus9
Senior Member
 
Registered: Oct 2003
Location: Australia
Posts: 4,220

Rep: Reputation: Disabled
hi

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


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 06:12 AM
change Root Password even if the password in the grub is also set sheelnidhi Linux - General 6 08-30-2006 08:27 AM
GRUB Password sunlinux Linux - Security 4 08-16-2006 11:47 AM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 09:01 PM


All times are GMT -5. The time now is 09:31 AM.

Main Menu
 
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
Open Source Consulting | Domain Registration