Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
passwd for /GRUB
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
li1_getoo
l33t
l33t


Joined: 20 Oct 2002
Posts: 661
Location: Queens , NY

PostPosted: Fri Jan 17, 2003 10:13 am    Post subject: passwd for /GRUB Reply with quote

Code:
 cat /boot/grub/menu.lst
default 0
timeout 10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
password changeme xxxxx

title=Gentoo
root (hd0,0)
kernel /boot/bzImage root=/dev/hda5


I did that and nothin happend , i mean booted the same way without asking me for a passwd , can anyboy tell me how to do this the right way :)

i did find some info here but is not enough
http://www.gentoo.org/doc/en/gentoo-security.xml
Back to top
View user's profile Send private message
drakonite
l33t
l33t


Joined: 02 Nov 2002
Posts: 768
Location: Lincoln, NE

PostPosted: Fri Jan 17, 2003 10:20 am    Post subject: Reply with quote

What is the purpose of the xxxxx's on the password line?
Back to top
View user's profile Send private message
drakonite
l33t
l33t


Joined: 02 Nov 2002
Posts: 768
Location: Lincoln, NE

PostPosted: Fri Jan 17, 2003 10:23 am    Post subject: Reply with quote

Oh... and if I am reading correctly you have to add "lock" as one of the options to all of the options you don't want to be picked without the password....

I haven't tried this yet but thats what it sounds like to me...
Back to top
View user's profile Send private message
li1_getoo
l33t
l33t


Joined: 20 Oct 2002
Posts: 661
Location: Queens , NY

PostPosted: Fri Jan 17, 2003 12:27 pm    Post subject: Reply with quote

XXXX == the actual passwd , but if u can give me an example will be nice
thanx
Back to top
View user's profile Send private message
jukka
Apprentice
Apprentice


Joined: 06 Jun 2002
Posts: 249
Location: Zurich, Switzerland

PostPosted: Fri Jan 17, 2003 10:43 pm    Post subject: Reply with quote

you should read 'info grub' -> Security
Back to top
View user's profile Send private message
drakonite
l33t
l33t


Joined: 02 Nov 2002
Posts: 768
Location: Lincoln, NE

PostPosted: Fri Jan 17, 2003 11:47 pm    Post subject: Reply with quote

Ok, here is how grub passwords work...

Code:

default 0
timeout 5
password PLEASE

splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux
root(hd0,0)
kernel /boot/bzImage root=/dev/hda5 hdc=scsi

title=Windows 2000
lock
root (hd0,2)
chainloader +1


Will make it so the password is PLEASE. You will only be able to edit entires in grub if you know the password, and you can't start Windows 2000 without knowing the password.

The xxxxx you put shouldn't be there. The only argument you need is the actuall password.

You can use md5sum passwords by putting "--md5sum [md5encoded password]" as the password, but I'm not sure how you encode them to md5 at the moment so don't ask me ;)


One other thing you can do is specifiy the password line like so:
Code:

password PLEASE /boot/grub/admin-menu.lst

and when you input the password it will load admin-menu.lst to use for it's settings instead of menu.lst.


Does that explain things nicely? ;)
Back to top
View user's profile Send private message
li1_getoo
l33t
l33t


Joined: 20 Oct 2002
Posts: 661
Location: Queens , NY

PostPosted: Sat Jan 18, 2003 1:00 am    Post subject: Reply with quote

thank u guys
i did it info grub helped
Code:
password --md5crypt <placethecrypthere>


u get the crypt by running grub > md5crypt
password: ******
encrypted : <u copy this on ur /boot/grub/menu.lst>
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum