My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Authentication  
HOWTO enable password protection
Updated Apr 25, 2010 by bean12...@gmail.com

First, configure user and passwords

To add/edit user, use burg-adduser, for example:

sudo burg-adduser --super admin
sudo burg-adduser user1

The --super option is used to specify super user.

To remove user, use burg-deluser, for example:

sudo burg-deluser user1

The password is stored in /etc/default/burg-passwd.

Second, setup GRUB_USERS variable in /etc/default/burg

Here is an example:

GRUB_USERS="*=user1,user2:ubuntu=user1:windows="

This means user1 can boot Ubuntu, no password is needed for Windows, user1 and user2 can boot other OS besides Ubuntu and Windows. Superusers can boot any OS and use system-wide hotkeys like `c' to enter console mode.

You can also use different setting for normal and rescue boot items, add to class name to indicate rescue items, for example:

GRUB_USERS="ubuntu=user1"

user1 can use both normal and rescue boot items.

GRUB_USERS="*ubuntu=user1"

Anyone can use normal boot item, user1 can use rescue boot item.

GRUB_USERS="ubuntu=user1:*ubuntu=user2"

User1 can use normal boot item, user2 can use rescue boot item.

Superusers can use all items.

Finally, generate burg.cfg with update-burg

sudo update-burg

You can use burg-emu to check the configuration before reboot:

sudo burg-emu
Comment by magicman...@gmail.com, Oct 8, 2010

Wait, when you say user1 can boot windows, that means that a password is needed?

Comment by hac...@gmail.com, Nov 24, 2010

please, explain the format GRUB_USERS is supposed to have... i find it much easier editing burg.cfg rather that using that option...

Comment by hac...@gmail.com, Nov 24, 2010

ok, i get it; then, its: GRUB_USERS="os=user:os=user:....." user could be left blank, wich means anybody can access that os. os values: ubuntu: ubuntu os windows: windows os, i have only 7 and this value works with it; dunno with xp; *ubuntu : seems to be ubuntu rescue mode

my setting: GRUB_USERS="windows=:ubuntu=:*ubuntu=admin" this means windows and ubuntu, free for all... but ubuntu rescue, admin only. of course, editing and accesing grub terminal (C key) also admin only


Sign in to add a comment
Powered by Google Project Hosting