diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-02-12 10:28:06 +0100 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-02-14 10:43:56 -0500 |
commit | 856d890bb37a9a793fdcbe0884d1e7286aeec1f5 (patch) | |
tree | c9bb9ff20d831b2537bba5d9dfba4d44cfbfedb2 /ipa-client/ipa-install | |
parent | da1fe966debee1b94f7cae095a55880cfb260a39 (diff) | |
download | freeipa-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-x | ipa-client/ipa-install/ipa-client-install | 3 |
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) |