From af7cbc9666cce2d5bee437eae14e36f65e8f883f Mon Sep 17 00:00:00 2001 From: davidcoutadeur Date: Sat, 31 Mar 2018 21:17:11 +0200 Subject: [PATCH] Fix "Wrong permissions ownership of installed binaries" (references #10) --- .../openldap-ltb-2.4.46/debian/openldap-ltb.postinst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/paquet-openldap-debian/openldap-ltb-2.4.46/debian/openldap-ltb.postinst b/debian/paquet-openldap-debian/openldap-ltb-2.4.46/debian/openldap-ltb.postinst index 42770eb..4d8acbd 100755 --- a/debian/paquet-openldap-debian/openldap-ltb-2.4.46/debian/openldap-ltb.postinst +++ b/debian/paquet-openldap-debian/openldap-ltb-2.4.46/debian/openldap-ltb.postinst @@ -26,13 +26,13 @@ fi # Create some dirs and change owner -/bin/chown -R ${LDAPUSER}:${LDAPGROUP} ${LDAPSERVERDIR} mkdir -p ${LDAPDATADIR} -/bin/chown -R ${LDAPUSER}:${LDAPGROUP} ${LDAPDATADIR} mkdir -p ${LDAPLOGSDIR} -/bin/chown -R ${LDAPUSER}:${LDAPGROUP} ${LDAPLOGSDIR} mkdir -p ${LDAPBACKUPDIR} -/bin/chown -R ${LDAPUSER}:${LDAPGROUP} ${LDAPBACKUPDIR} +/bin/chown -R root:root ${LDAPSERVERDIR} +/bin/chown -R ${LDAPUSER}:${LDAPGROUP} ${LDAPDATADIR} +/bin/chown -R ${LDAPUSER}:${LDAPGROUP} ${LDAPLOGSDIR} +/bin/chown -R ${LDAPUSER}:${LDAPGROUP} ${LDAPSERVERDIR}/var/run # Automatize init script