diff options
Diffstat (limited to 'ipaserver/install/dsinstance.py')
-rw-r--r-- | ipaserver/install/dsinstance.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py index adeecfc00..827f69136 100644 --- a/ipaserver/install/dsinstance.py +++ b/ipaserver/install/dsinstance.py @@ -333,6 +333,8 @@ class DsInstance(service.Service): root_logger.critical("failed to add user %s" % e) def __create_instance(self): + pent = pwd.getpwnam(DS_USER) + self.backup_state("serverid", self.serverid) self.fstore.backup_file("/etc/sysconfig/dirsrv") @@ -347,6 +349,7 @@ class DsInstance(service.Service): # Must be readable for dirsrv os.chmod(target_fname, 0440) + os.chown(target_fname, pent.pw_uid, pent.pw_gid) inf_txt = ipautil.template_str(INF_TEMPLATE, self.sub_dict) root_logger.debug("writing inf template") |