grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GITGRUB] New menu interface (implementation)


From: Bean
Subject: Re: [GITGRUB] New menu interface (implementation)
Date: Wed, 28 Oct 2009 01:34:56 +0800

Hi,

Update:

Support password dialog.

In grub.cfg, config users, for example:

set superusers=admin
password admin admin
password user user

In this example, there are two uses admin and user, admin is a superuser.

To set authorized user for a boot item defined with menuentry statement:

menuentry "AA" --users user {
  boot
}

To set authorized user for a boot item defined with menu config:

menu {
  "AA" {
     users = user
     command = true
  }
}

You can also limit commands in onkey section to be run by super users
only, to do this, add * as the first character. For example:

onkey {
  e = "*menu_edit dialog_edit text=command"
  t = "if menu_edit dialog_edit text=title; then menu_refresh; fi"
  c = "*menu_popup term_window"
  f6 = menu_next_anchor
  f7 = "menu_popup layout_test"
  f8 = menu_toggle_mode
  f9 = halt
  f10 = reboot
}

e and c hotkey can only be used by super user.

-- 
Bean

My repository: https://launchpad.net/burg




reply via email to

[Prev in Thread] Current Thread [Next in Thread]