Skip to content

Commit ce3c5e7

Browse files
authored
Merge pull request hestiacp#1083 from Skamasle/patch-14
Fix permission ( security issue )
2 parents 836ce13 + 9aed954 commit ce3c5e7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

install/vst-install-debian.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,9 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
10881088
fi
10891089
wget $vestacp/roundcube/main.inc.php -O /etc/roundcube/main.inc.php
10901090
wget $vestacp/roundcube/db.inc.php -O /etc/roundcube/db.inc.php
1091+
chmod 640 /etc/roundcube/debian-db-roundcube.php
1092+
chmod 640 /etc/roundcube/config.inc.php
1093+
chown root:www-data /etc/roundcube/debian-db-roundcube.php
10911094
wget $vestacp/roundcube/vesta.php -O \
10921095
/usr/share/roundcube/plugins/password/drivers/vesta.php
10931096
wget $vestacp/roundcube/config.inc.php -O \
@@ -1102,7 +1105,9 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
11021105
if [ "$release" -eq 8 ]; then
11031106
mv -f /etc/roundcube/main.inc.php /etc/roundcube/config.inc.php
11041107
mv -f /etc/roundcube/db.inc.php /etc/roundcube/debian-db-roundcube.php
1105-
1108+
chmod 640 /etc/roundcube/debian-db-roundcube.php
1109+
chmod 640 /etc/roundcube/config.inc.php
1110+
chown root:www-data /etc/roundcube/debian-db-roundcube.php
11061111
# RoundCube tinyMCE fix
11071112
tinymceFixArchiveURL=$vestacp/roundcube/roundcube-tinymce.tar.gz
11081113
tinymceParentFolder=/usr/share/roundcube/program/js

0 commit comments

Comments
 (0)