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
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,
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