From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N2pwn-00045S-5q for mharc-grub-devel@gnu.org; Tue, 27 Oct 2009 13:35:05 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2pwl-00045J-UP for grub-devel@gnu.org; Tue, 27 Oct 2009 13:35:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2pwh-00043v-A0 for grub-devel@gnu.org; Tue, 27 Oct 2009 13:35:03 -0400 Received: from [199.232.76.173] (port=36225 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2pwg-00043r-UT for grub-devel@gnu.org; Tue, 27 Oct 2009 13:34:59 -0400 Received: from mail-px0-f192.google.com ([209.85.216.192]:48437) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N2pwg-0002qA-Jc for grub-devel@gnu.org; Tue, 27 Oct 2009 13:34:58 -0400 Received: by pxi30 with SMTP id 30so257417pxi.14 for ; Tue, 27 Oct 2009 10:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=ysiUcWDh0pxxUnISqMVgOpinCFm4ENWdJ9pWZcIiNUU=; b=WgPcd7HmPnX9Xn9eQQc2ccNVmwnnCqLScamd9k80S3kzHPMPEmCJU18TILHmJ9Twds MBiOLV4T6XnwcUJVyszpHagIPhNTzicaTie2pcYECHnU9zXJsw1OGYOhUxZhuSlvfbFj dexW9jQthMUPkWsnlzSogNb+fefP9l5CGUMo8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=b5OTd+1HXiK1q/TqliCWTm0QqlSigpa6eRV5qUFl+T8hHo/wSlpKF1W8tltqsz69U8 fE7VC69SrpmrMWr3mtiT286KPT2qB1D2/6OXme6i9h8s3N/jZrMeXPC9TfRg20tHN1d7 LpTMO9I+OZjSCNyky0dLIqd33MwS8Uz5QqWs4= MIME-Version: 1.0 Received: by 10.140.169.10 with SMTP id r10mr2078442rve.16.1256664896932; Tue, 27 Oct 2009 10:34:56 -0700 (PDT) In-Reply-To: References: <48f46e890910222259t1c8508b3h413d69020a373f32@mail.gmail.com> <48f46e890910240104o47421525o2cb7013a12696dc3@mail.gmail.com> <48f46e890910250727g6bb5b762oeb8ca94f684b1cca@mail.gmail.com> Date: Wed, 28 Oct 2009 01:34:56 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [GITGRUB] New menu interface (implementation) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2009 17:35:04 -0000 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