From b906850eb50456a6d1dc899d7644936026f6ee25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=EF=BF=BD=EF=BF=BD?= Date: Mon, 6 Oct 2014 15:15:55 +0000 Subject: [PATCH] more reasonable permissions on config files this way the webserver don't own the files (so can't change perms) yet can still read --- debian/alternc-roundcube.postinst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/alternc-roundcube.postinst b/debian/alternc-roundcube.postinst index 6dfe23c9..afe52a18 100644 --- a/debian/alternc-roundcube.postinst +++ b/debian/alternc-roundcube.postinst @@ -24,13 +24,13 @@ case "$1" in dpkg-statoverride --list /etc/roundcube/debian-db.php >/dev/null && dpkg-statoverride --remove /etc/roundcube/debian-db.php - chown -R www-data:root /etc/roundcube/debian-db.php - chmod -R 460 /etc/roundcube/debian-db.php + chown root:www-data /etc/roundcube/debian-db.php + chmod 640 /etc/roundcube/debian-db.php dpkg-statoverride --list /etc/roundcube/main.inc.php >/dev/null && dpkg-statoverride --remove /etc/roundcube/main.inc.php - chown -R www-data:root /etc/roundcube/main.inc.php - chmod -R 460 /etc/roundcube/main.inc.php + chown root:www-data /etc/roundcube/main.inc.php + chmod 640 /etc/roundcube/main.inc.php dpkg-statoverride --list /var/log/roundcube >/dev/null && dpkg-statoverride --remove /var/log/roundcube