All of lore.kernel.org
 help / color / mirror / Atom feed
From: aq <aquynh@gmail.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH] warning when not running "xm" as root
Date: Tue, 17 May 2005 20:42:08 -0700	[thread overview]
Message-ID: <9cde8bff050517204268223830@mail.gmail.com> (raw)

hello,

Currently -unstable requires user must be root to run xm. But the
error spit out is not clear enough, or even misleaded ("Error: Error
connecting to xend, is xend running?")

This patch checks to see if the user is root, and warns if not
(patched against cset 1.1440)

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>

===== tools/python/xen/xm/main.py 1.52 vs edited =====
--- 1.52/tools/python/xen/xm/main.py    2005-05-13 00:04:56 +09:00
+++ edited/tools/python/xen/xm/main.py  2005-05-18 12:30:51 +09:00
@@ -129,6 +129,8 @@
         sys.exit(1)
 
     def main(self, args):
+        if os.geteuid() != 0:
+            self.err("xm must be run as root.")
         try:
             self.main_call(args)
         except socket.error, ex:

             reply	other threads:[~2005-05-18  3:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-18  3:42 aq [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-05-18  7:11 [PATCH] warning when not running "xm" as root Ian Pratt
2005-05-18  7:43 ` aq
2005-05-18  8:08 Ian Pratt

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=9cde8bff050517204268223830@mail.gmail.com \
    --to=aquynh@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.