mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
Fix permissions issue ( security )
Same issue happen in debian, in my centos 6 installs always get /etc/roundcubemail/config.inc.php whit 644 whit roundcube password exposed. In centos bad user:group is asigned so also fixed This will be fixed in general update in current installed vestacp servers.
This commit is contained in:
parent
39f0fa8761
commit
dfdaf8d80e
1 changed files with 2 additions and 0 deletions
|
@ -1171,6 +1171,8 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
|
|||
mysql -e "CREATE DATABASE roundcube"
|
||||
mysql -e "GRANT ALL ON roundcube.* TO roundcube@localhost IDENTIFIED BY '$r'"
|
||||
sed -i "s/%password%/$r/g" /etc/roundcubemail/config.inc.php
|
||||
chmod 640 /etc/roundcubemail/config.inc.php
|
||||
chown root:apache /etc/roundcubemail/config.inc.php
|
||||
if [ -e "/usr/share/roundcubemail/SQL/mysql.initial.sql" ]; then
|
||||
mysql roundcube < /usr/share/roundcubemail/SQL/mysql.initial.sql
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue