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
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel