diff --git a/confluent_server/confluent/sshutil.py b/confluent_server/confluent/sshutil.py index 670a2ac6..0a52fe81 100644 --- a/confluent_server/confluent/sshutil.py +++ b/confluent_server/confluent/sshutil.py @@ -82,6 +82,7 @@ def initialize_ca(): if os.path.exists('/etc/confluent/ssh/ca.pub'): cafilename = '/var/lib/confluent/public/site/ssh/{0}.ca'.format(myname) shutil.copy('/etc/confluent/ssh/ca.pub', cafilename) + os.seteuid(ouid) raise AlreadyExists() try: os.makedirs('/etc/confluent/ssh', mode=0o700)