ipa-change-master-key: Really exit when not run as root Also fix this for ipa-fix-CVE-2008-3274

This commit is contained in:
Martin Nagy 2008-09-24 19:38:23 +02:00
parent 4d8a255c06
commit 9b8f7b1eac
2 changed files with 2 additions and 0 deletions

View File

@ -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."

View File

@ -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."