qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: swz <swzhengst@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run
Date: Tue, 15 Nov 2005 18:41:28 +0800	[thread overview]
Message-ID: <1132051289.4464.9.camel@localhost.localdomain> (raw)
In-Reply-To: <200511141653.22524.dfeustel@verizon.net>

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

  parent reply	other threads:[~2005-11-15 10:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-14 21:53 [Qemu-devel] Qemu bug when building for OpenBSD Dave Feustel
2005-11-14 22:05 ` Paul Brook
2005-11-14 23:13   ` Dave Feustel
2005-11-14 23:20     ` Paul Brook
2005-11-15 10:41 ` swz [this message]
2005-11-15 14:31   ` [Qemu-devel] why run qemu not use sudo, the /etc/qemu-ifup will not run hmm
2005-11-16  3:02     ` swz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1132051289.4464.9.camel@localhost.localdomain \
    --to=swzhengst@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).