[Top][All Lists]
[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
- Re: [GITGRUB] New menu interface (implementation), (continued)
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/20
- Re: [GITGRUB] New menu interface (implementation), Michal Suchanek, 2009/10/21
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/22
- Re: [GITGRUB] New menu interface (implementation), Michal Suchanek, 2009/10/22
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/22
- Re: [GITGRUB] New menu interface (implementation), Peter Cros, 2009/10/23
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/23
- Re: [GITGRUB] New menu interface (implementation), Peter Cros, 2009/10/24
- Re: [GITGRUB] New menu interface (implementation), Peter Cros, 2009/10/25
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/26
- Re: [GITGRUB] New menu interface (implementation),
Bean <=
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/28
- Re: [GITGRUB] New menu interface (implementation), Vladimir 'phcoder' Serbinenko, 2009/10/28
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/28
- Re: [GITGRUB] New menu interface (implementation), Vladimir 'phcoder' Serbinenko, 2009/10/29
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/29
- Re: [GITGRUB] New menu interface (implementation), Vladimir 'phcoder' Serbinenko, 2009/10/29
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/29
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/30
- Re: [GITGRUB] New menu interface (implementation), Michal Suchanek, 2009/10/20
- Re: [GITGRUB] New menu interface (implementation), Bean, 2009/10/20