From 856d890bb37a9a793fdcbe0884d1e7286aeec1f5 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sat, 12 Feb 2011 10:28:06 +0100 Subject: [PATCH] Make sure only root can run ipa-client-install https://fedorahosted.org/freeipa/ticket/957 --- ipa-client/ipa-install/ipa-client-install | 3 +++ 1 file changed, 3 insertions(+) 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)