Преглед изворни кода

apache roundcube: Wrong ownership and filename

On Ubuntu 14.04 LTS, a2ensite automatically appends ".conf" to the filename it looks for in /etc/apache2/sites-available/
Therefore, the file "/etc/apache2/sites-available/roundcube" must be renamed to
"/etc/apache2/sites-available/roundcube.conf".

Security issue:
This file must be owned by root, otherwise it is a huge security issue (User www-data could modify the file and get root at next restart of apache).
Sven Neuhaus пре 10 година
родитељ
комит
67a9ce43bd
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      roles/webmail/tasks/roundcube.yml

+ 1
- 1
roles/webmail/tasks/roundcube.yml Прегледај датотеку

@@ -33,7 +33,7 @@
33 33
     - twofactor_gauthenticator
34 34
 
35 35
 - name: Configure the Apache HTTP server for roundcube
36
-  template: src=etc_apache2_sites-available_roundcube.j2 dest=/etc/apache2/sites-available/roundcube group=www-data owner=www-data force=yes
36
+  template: src=etc_apache2_sites-available_roundcube.j2 dest=/etc/apache2/sites-available/roundcube.conf group=root owner=root force=yes
37 37
 
38 38
 - name: Configure roundcube
39 39
   copy: src={{ item.src }} dest={{ item.dest }} group=www-data owner=root mode=640 force=yes

Loading…
Откажи
Сачувај