Gentoo Archives: gentoo-user

From: "John J. Foster" <Gentoo-User@××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] grub passwords - how do I limit OS selection?
Date: Sun, 30 Jul 2006 21:14:39
Message-Id: 20060730210707.GC19819@garbanzo
In Reply to: Re: [gentoo-user] grub passwords - how do I limit OS selection? by "John J. Foster"
1 On Sun, Jul 30, 2006 at 04:59:34PM -0400, John J. Foster wrote:
2 > On Sun, Jul 30, 2006 at 07:09:41AM -0700, Mark Knecht wrote:
3 > > Hi,
4 > > I would like to limit OS selection at boot time. The machine has
5 > > Gentoo and Windows. Gentoo *must* be the booted OS unless a password
6 > > is entered. I have tried the password feature in grub but it does not
7 > > implement this feature. It implements changing boot time kernel
8 > > options, but not OS choice as far as I can tell.
9 > >
10 > > I also tried adding the hiddenmenu option in grub but it seems that
11 > > with hiddenmenu turned on grub never accepts a password.
12 > >
13 > > Is there a way to implement what I need? If you can provide an
14 > > example that would be great.
15 > >
16 > > NOTE: I currently do this be editing the grub file itself but I'm
17 > > looking for something more sophisticated since I'd like my wife to be
18 > > able to boot Windows but not my son.
19 > >
20 > > Thanks all,
21 > > Mark
22 >
23 > Mark,
24 >
25 > Unless I'm reading your needs wrong, I think you need the "lock" command
26 > as well as the "password" command.
27 >
28 > http://www.gnu.org/software/grub/manual/grub.html#password
29 > http://www.gnu.org/software/grub/manual/grub.html#lock
30 oops - forgot one
31 http://www.gnu.org/software/grub/manual/grub.html#Security
32 --
33 Ambition is a poor excuse for not having enough sense to be lazy.