From: Charles Coffing Upstream: no Index: xen-3.1-testing/tools/python/xen/xm/main.py =================================================================== --- xen-3.1-testing.orig/tools/python/xen/xm/main.py +++ xen-3.1-testing/tools/python/xen/xm/main.py @@ -1755,6 +1755,10 @@ def xm_debug_keys(args): def xm_top(args): arg_check(args, "top", 0) + # A hack to get a clear error message if ran as non-root + if os.geteuid() != 0: + raise IOError() + os.execvp('xentop', ['xentop']) def xm_dmesg(args):