summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-03-16 17:15:26 -0500
committerSimo Sorce <ssorce@redhat.com>2012-10-10 11:06:16 -0400
commit952ffe49a67cf1692411160ad63cd26764dc77cf (patch)
treeb2d8583234834014bce28cc62d910443623747ae
parent08e3fbb3b6c1c043feda6d72e50a8d35c482098c (diff)
downloadfreeipa.git-952ffe49a67cf1692411160ad63cd26764dc77cf.tar.gz
freeipa.git-952ffe49a67cf1692411160ad63cd26764dc77cf.tar.xz
freeipa.git-952ffe49a67cf1692411160ad63cd26764dc77cf.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 Conflicts: ipaserver/install/dsinstance.py
-rw-r--r--ipaserver/install/dsinstance.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipaserver/install/dsinstance.py b/ipaserver/install/dsinstance.py
index adeecfc0..827f6913 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")