mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-26 08:51:50 -06:00
Make sure only root can run ipa-client-install
https://fedorahosted.org/freeipa/ticket/957
This commit is contained in:
parent
da1fe966de
commit
856d890bb3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user