From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EbyUw-0002cl-Nh for qemu-devel@nongnu.org; Tue, 15 Nov 2005 05:57:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EbyQp-0001GX-3S for qemu-devel@nongnu.org; Tue, 15 Nov 2005 05:53:00 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EbyFV-0000Ir-Fm for qemu-devel@nongnu.org; Tue, 15 Nov 2005 05:41:15 -0500 Received: from [221.122.43.98] (helo=fw.exoweb.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EbyFV-0001xK-96 for qemu-devel@nongnu.org; Tue, 15 Nov 2005 05:41:13 -0500 Received: from [192.168.0.126] (helo=exo126.exoweb.net ident=shunwen) by fw.exoweb.net with esmtp (Exim 3.36 #1 (Debian)) id 1EbyFQ-0005fa-00 for ; Tue, 15 Nov 2005 18:41:08 +0800 From: swz In-Reply-To: <200511141653.22524.dfeustel@verizon.net> References: <200511141653.22524.dfeustel@verizon.net> Content-Type: text/plain Date: Tue, 15 Nov 2005 18:41:28 +0800 Message-Id: <1132051289.4464.9.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run Reply-To: swzhengst@gmail.com, 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 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. Thank you! Best Regard Zheng SW