diff --git a/debian/alternc-roundcube.postinst b/debian/alternc-roundcube.postinst
index 0d99169d..3acb05bf 100644
--- a/debian/alternc-roundcube.postinst
+++ b/debian/alternc-roundcube.postinst
@@ -11,11 +11,6 @@ LOGROTATE="/etc/logrotate.d/roundcube-core"
case "$1" in
configure)
- # add alternc-roundcube user for php-itk special rights
- if ! getent passwd alternc-roundcube; then
- useradd -g nogroup -u 1996 alternc-roundcube -d /usr/share/roundcube
- fi
-
# removed from 3.1 & 3.2 :
dpkg-statoverride --list /var/lib/roundcube/temp >/dev/null &&
dpkg-statoverride --remove /var/lib/roundcube/temp
diff --git a/roundcube/roundcube-install b/roundcube/roundcube-install
index 4e9149b3..8f8cada6 100644
--- a/roundcube/roundcube-install
+++ b/roundcube/roundcube-install
@@ -81,9 +81,8 @@ EOF
fi
if [ "$1" = "end" ]; then
- # This is necessary because upgrading roundcube from 7.1 to 7.2 changes this setting
- chown alternc-roundcube:root /etc/roundcube/config.inc.php
- # In case owner is reset to www-data
- chown alternc-roundcube:nogroup /var/lib/roundcube/temp
+ # Roundcube vhosts run as www-data instead of alternc-roundcube now.
+ # Ensure the configuration is owned by the appropriate user.
+ chown www-data:root /etc/roundcube/config.inc.php
+ chown www-data:nogroup /var/lib/roundcube/temp
fi
-
diff --git a/roundcube/templates/apache2/roundcube.conf b/roundcube/templates/apache2/roundcube.conf
index cfa83db1..a72c65f6 100644
--- a/roundcube/templates/apache2/roundcube.conf
+++ b/roundcube/templates/apache2/roundcube.conf
@@ -20,9 +20,9 @@
# Access to tinymce files
- Options +Indexes +MultiViews +FollowSymLinks
- AllowOverride None
- Require all granted
+ Options +Indexes +MultiViews +FollowSymLinks
+ AllowOverride None
+ Require all granted
@@ -37,27 +37,26 @@
Options -FollowSymLinks
AllowOverride None
+ Require all denied
Options -FollowSymLinks
AllowOverride None
- Order allow,deny
- Deny from all
+ Require all denied
Options -FollowSymLinks
AllowOverride None
- Order allow,deny
- Deny from all
+ Require all denied
Alias /javascript /usr/share/javascript/
- Options +FollowSymLinks +MultiViews
- Require all granted
+ Options +FollowSymLinks +MultiViews
+ Require all granted
SSLEngine On