summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipa-install
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-02-12 10:28:06 +0100
committerRob Crittenden <rcritten@redhat.com>2011-02-14 10:43:56 -0500
commit856d890bb37a9a793fdcbe0884d1e7286aeec1f5 (patch)
treec9bb9ff20d831b2537bba5d9dfba4d44cfbfedb2 /ipa-client/ipa-install
parentda1fe966debee1b94f7cae095a55880cfb260a39 (diff)
downloadfreeipa-856d890bb37a9a793fdcbe0884d1e7286aeec1f5.tar.gz
freeipa-856d890bb37a9a793fdcbe0884d1e7286aeec1f5.tar.xz
freeipa-856d890bb37a9a793fdcbe0884d1e7286aeec1f5.zip
Make sure only root can run ipa-client-install
https://fedorahosted.org/freeipa/ticket/957
Diffstat (limited to 'ipa-client/ipa-install')
-rwxr-xr-xipa-client/ipa-install/ipa-client-install3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index a32564dfe..5012c657d 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -810,6 +810,9 @@ def main():
try:
if __name__ == "__main__":
+ if not os.getegid() == 0:
+ sys.exit("\nYou must be root to run ipa-client-install.\n")
+
sys.exit(main())
except SystemExit, e:
sys.exit(e)