summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipa-install/ipa-client-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/ipa-client-install
parentda1fe966debee1b94f7cae095a55880cfb260a39 (diff)
downloadfreeipa-856d890bb37a9a793fdcbe0884d1e7286aeec1f5.zip
freeipa-856d890bb37a9a793fdcbe0884d1e7286aeec1f5.tar.gz
freeipa-856d890bb37a9a793fdcbe0884d1e7286aeec1f5.tar.xz
Make sure only root can run ipa-client-install
https://fedorahosted.org/freeipa/ticket/957
Diffstat (limited to 'ipa-client/ipa-install/ipa-client-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 a32564d..5012c65 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)