diff options
author | Martin Nagy <mnagy@redhat.com> | 2008-09-24 19:38:23 +0200 |
---|---|---|
committer | Martin Nagy <mnagy@redhat.com> | 2008-09-24 20:09:35 +0200 |
commit | 9b8f7b1eac4edcca3ecdf6e4f15f1a9857e78172 (patch) | |
tree | 36556a32d736c7f621d46adcbcca3e757412c3ac | |
parent | 4d8a255c062d943695ae35c467ec8f2b0f7fa4b7 (diff) | |
download | freeipa.git-9b8f7b1eac4edcca3ecdf6e4f15f1a9857e78172.tar.gz freeipa.git-9b8f7b1eac4edcca3ecdf6e4f15f1a9857e78172.tar.xz freeipa.git-9b8f7b1eac4edcca3ecdf6e4f15f1a9857e78172.zip |
ipa-change-master-key: Really exit when not run as root Also fix this for ipa-fix-CVE-2008-3274
-rw-r--r-- | ipa-admintools/ipa-change-master-key | 1 | ||||
-rw-r--r-- | ipa-server/ipa-fix-CVE-2008-3274 | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ipa-admintools/ipa-change-master-key b/ipa-admintools/ipa-change-master-key index 9ab5a96e..a4e94399 100644 --- a/ipa-admintools/ipa-change-master-key +++ b/ipa-admintools/ipa-change-master-key @@ -156,6 +156,7 @@ def main(): if os.getuid() != 0: print "ERROR: This command must be run as root" + sys.exit(1) print "DANGER: This is a dangerous operation, make sure you backup all your IPA data before running the tool" print "This command will restart your Directory and KDC Servers." diff --git a/ipa-server/ipa-fix-CVE-2008-3274 b/ipa-server/ipa-fix-CVE-2008-3274 index 3d8324e0..41d3abc9 100644 --- a/ipa-server/ipa-fix-CVE-2008-3274 +++ b/ipa-server/ipa-fix-CVE-2008-3274 @@ -170,6 +170,7 @@ def change_mkey(password = None, quiet = False): if os.getuid() != 0: print "ERROR: This command must be run as root" + sys.exit(1) print "DANGER: This is a dangerous operation, make sure you backup all your IPA data before running the tool" print "This command will restart your Directory and KDC Servers." |