Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ec1pA-0004Ou-8f for qemu-devel@nongnu.org; Tue, 15 Nov 2005 09:30:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ec1p8-0004OV-Cc for qemu-devel@nongnu.org; Tue, 15 Nov 2005 09:30:15 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ec1p7-0004OP-91 for qemu-devel@nongnu.org; Tue, 15 Nov 2005 09:30:13 -0500 Received: from [213.221.88.242] (helo=smtp.kyberwelt.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ec1p7-0002sY-3A for qemu-devel@nongnu.org; Tue, 15 Nov 2005 09:30:13 -0500 Received: from backend1.closed-net.vr (proxy.vm-ext.vr [192.168.104.25]) by smtp.kyberwelt.de (Postfix) with ESMTP id BA996EE07 for ; Wed, 16 Nov 2005 01:52:53 +0100 (CET) Received: from localhost (unknown [192.168.104.35]) by backend1.closed-net.vr (Postfix) with SMTP id 7510DB033F for ; Tue, 15 Nov 2005 16:46:03 +0100 (CET) Date: Tue, 15 Nov 2005 15:31:12 +0100 From: hmm Subject: Re: [Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run Message-Id: <20051115153112.3607d653.user05@kyberwelt.de> In-Reply-To: <1132051289.4464.9.camel@localhost.localdomain> References: <200511141653.22524.dfeustel@verizon.net> <1132051289.4464.9.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org hi > I put the next three line into /etc/qemu-ifup. > #!/bin/sh > echo $* >> /tmp/qemu-ifup.$$ > sudo /sbin/ifconfig ${1##/*/} 0.0.0.0 promisc up > sudo /usr/sbin/brctl addif bridge ${1##/*/} > > I think when the qemu run, it will make a file in /tmp, > but actually, when I use root the run qemu, it work ok, when I user a > user, the script isn't run. Why? > > Is the same with the option "-n script", when I use root to run qemu, > the script I assign will run, but in a normal user, it won't work. > as you did not mention /etc/sudoers i suspect you did not configure your sudoers(5) file. read the manpage for full information. /etc/sudoers defines which users can user predefined command/argument strings. btw: for syntax checking after editing this file you should use visudo(8) to edit this file. greetings virtual