backend/satellite_tools/spacewalk-remove-channel | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 168f2ee415201678ec505844a4f98a18cd3ec007
Author: Justin Sherrill <jsherril(a)redhat.com>
Date: Thu Feb 25 11:50:44 2010 -0500
requiring root for spacewalk-remove-channel
diff --git a/backend/satellite_tools/spacewalk-remove-channel
b/backend/satellite_tools/spacewalk-remove-channel
index b000ada..5cbf367 100755
--- a/backend/satellite_tools/spacewalk-remove-channel
+++ b/backend/satellite_tools/spacewalk-remove-channel
@@ -53,6 +53,10 @@ options_table = [
def main():
+ if os.getuid() != 0:
+ sys.stderr.write('ERROR: must be root to execute\n')
+ sys.exit(8)
+
global options_table
parser = OptionParser(option_list=options_table)