Re: [Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run

2005-11-15 Thread swz
On 二, 2005-11-15 at 15:31 +0100, hmm wrote: > 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##/*/} > > as you did not mention /etc/sudoers i susp

Re: [Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run

2005-11-15 Thread hmm
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,

[Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run

2005-11-15 Thread swz
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