LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Thread Tools
Old 11-05-2009, 10:51 PM   #1
requiemnoise
LQ Newbie
 
Registered: May 2008
Posts: 21
Thanked: 0
grub 2 password


[Log in to get rid of this advertisement]
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
linuxubuntu requiemnoise is offline     Reply With Quote
Old 11-06-2009, 07:57 AM   #2
aus9
Senior Member
 
Registered: Oct 2003
Location: Australia
Posts: 3,766
Thanked: 43
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)
linux aus9 is offline     Reply With Quote
Old 11-07-2009, 12:24 AM   #3
requiemnoise
LQ Newbie
 
Registered: May 2008
Posts: 21
Thanked: 0

Original Poster
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
linuxubuntu requiemnoise is offline     Reply With Quote
Old 11-08-2009, 06:45 PM   #4
requiemnoise
LQ Newbie
 
Registered: May 2008
Posts: 21
Thanked: 0

Original Poster
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.
linuxubuntu requiemnoise is offline     Reply With Quote
Old 11-09-2009, 09:15 AM   #5
aus9
Senior Member
 
Registered: Oct 2003
Location: Australia
Posts: 3,766
Thanked: 43
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..
linux aus9 is offline     Reply With Quote
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
Thanked: 4
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..
windows_98_nt_2000 JamesChamberlain is offline     Reply With Quote
Old 11-10-2009, 11:24 AM   #7
requiemnoise
LQ Newbie
 
Registered: May 2008
Posts: 21
Thanked: 0

Original Poster
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.
linuxubuntu requiemnoise is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 6 10-02-2007 03:18 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 05:51 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration