diff options
author | Endi Sukma Dewata <edewata@redhat.com> | 2012-03-16 17:15:26 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2012-04-01 16:54:55 -0400 |
commit | 874a298b073997ec6b1e5a119210c7f0975aed18 (patch) | |
tree | 22771a66dd1efc658a3784250d04fb96e07190da | |
parent | 8c1171e9234f055fe44313077528ee7491156146 (diff) | |
download | freeipa-874a298b073997ec6b1e5a119210c7f0975aed18.tar.gz freeipa-874a298b073997ec6b1e5a119210c7f0975aed18.tar.xz freeipa-874a298b073997ec6b1e5a119210c7f0975aed18.zip |
Fixed boot.ldif permission.
The server installation failed on F17 due to permission problem.
The /var/lib/dirsrv/boot.ldif was previously owned and only readable
by root. It is now owned by DS user dirsrv.
Ticket #2544
-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 e549e13cc..d82454d04 100644 --- a/ipaserver/install/dsinstance.py +++ b/ipaserver/install/dsinstance.py @@ -305,6 +305,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("running", is_ds_running()) self.backup_state("serverid", self.serverid) self.fstore.backup_file("/etc/sysconfig/dirsrv") @@ -320,6 +322,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") |