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
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
When I run qemu as root, it work ok. Now I want to no use root, and I
have find that only the script(default is /etc/qemu-ifup) want root. So
I write another script qemu-ifup-wrapper, source code(use c):
#include
#include
#include
#include
const char* script = "/etc/qemu-ifup";
const char* cm