Bug#545163: How to add a password to grub-pc

Nikolaus Hammler devnull at nobaq.net
Fri Mar 11 11:49:47 UTC 2011


On Tue, 27 Oct 2009 14:43:36 +0100, Jeroen Massar <jeroen at unfix.org> wrote:
> To just add a password which thus doesn't allow editing of boot
> entries: 8<-------------------------------------------------------
> jeroen at purgatory:~$
> cat /etc/grub.d/42_password
> #!/bin/sh
> exec tail -n +1 $0
> # add a password so that grub entries can't be edited
>
> set superusers="jeroen" password jeroen mypassword
> ------------------------------------------------------->8

Are you sure that the

   exec tail -n +1 $0

does not need to be

   exec tail -n +3 $0

instead?

Regards,
Niki





More information about the Pkg-grub-devel mailing list