https://fedorahosted.org/freeipa/ticket/2123
ipa-client-install was failing and returning traceback when wasn't run by root. It was caused by logging initialization that was taking part before the root privileges check. To correct it, the privileges check was moved before the logging initialization. -- Regards, Ondrej Hamada FreeIPA team jabber: [email protected] IRC: ohamada
From f7a53fa52cd2e757a183015d17b6d5c4d8dae08d Mon Sep 17 00:00:00 2001 From: Ondrej Hamada <[email protected]> Date: Fri, 18 Nov 2011 13:55:16 +0100 Subject: [PATCH] Client install root privileges check ipa-client-install was failing and returning traceback when wasn't run by root. It was caused by logging initialization that was taking part before the root privileges check. To correct it, the check was moved before the logging initialization. https://fedorahosted.org/freeipa/ticket/2123 --- ipa-client/ipa-install/ipa-client-install | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index cdea6dbe6fbbdca608ad8e858cf9fa042f7de9d1..9f7d3fd33bab5e9cc7748ffc0601d6e2f88bc24b 100755 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -1250,11 +1250,11 @@ def install(options, env, fstore, statestore): def main(): safe_options, options = parse_options() + if not os.getegid() == 0: + sys.exit("\nYou must be root to run ipa-client-install.\n") logging_setup(options) logging.debug('%s was invoked with options: %s' % (sys.argv[0], safe_options)) logging.debug("missing options might be asked for interactively later\n") - if not os.getegid() == 0: - sys.exit("\nYou must be root to run ipa-client-install.\n") env={"PATH":"/bin:/sbin:/usr/kerberos/bin:/usr/kerberos/sbin:/usr/bin:/usr/sbin"} -- 1.7.6.4
_______________________________________________ Freeipa-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/freeipa-devel
