WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-devel] Re: [Xen-users] start up script for "xentop"

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Re: [Xen-users] start up script for "xentop"
From: Thomas Goirand <zigo@xxxxxxxxxx>
Date: Tue, 15 Feb 2011 16:14:40 +0800
Cc:
Delivery-date: Tue, 15 Feb 2011 00:16:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTinmzMKeOUA-82tVimX000XxOMXmnqdkfsMvYe4z@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: Debian
References: <AANLkTi=eQ0+J0jo51DbhuZk531fPTBDKQHvTzUHgvYM+@xxxxxxxxxxxxxx> <AANLkTimtGxVdyzSkNjBjFcc+j=XEQN+rxpqmvC-5tgVX@xxxxxxxxxxxxxx> <AANLkTinmzMKeOUA-82tVimX000XxOMXmnqdkfsMvYe4z@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20101226 Icedove/3.0.11
On 02/12/2011 11:00 PM, Gautam wrote:
>
> Thanks Florian,
> Sudo will work.
> but i don't want to give the password.
> i wrote a script which uses *xentop* command.
You don't need to give any password if you setup /etc/sudoers correctly.
Something like that will do:

%xenusers       ALL= NOPASSWD: /usr/sbin/xm top

In this case %xenusers is a group. Just let every xm top users join this
group for example.

Thomas


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users