mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Require ipactl be run as root to avoid a lot of misleading error msgs.
Trying to run ipactl as non-root results in a slew of bogus error messages, some of which come because dirsrv can't read certain files as the wrong user, some based on our handling of that fact. ticket 936
This commit is contained in:
parent
edcdd87bc8
commit
aab27a76e2
@ -20,6 +20,7 @@
|
||||
|
||||
import sys
|
||||
try:
|
||||
import os
|
||||
from ipaserver.install import service
|
||||
from ipaserver.install import dsinstance
|
||||
from ipapython import config
|
||||
@ -226,6 +227,8 @@ def ipa_status():
|
||||
print "Failed to get %s Service status" % svc
|
||||
|
||||
def main():
|
||||
if not os.getegid() == 0:
|
||||
sys.exit("\nYou must be root to run ipactl.\n")
|
||||
|
||||
safe_options, options, args = parse_options()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user