From 5ead5e9c905aec81a2d6614acf94a6c6bd6b0585 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Sat, 12 Sep 2015 20:33:28 +0200 Subject: [PATCH] ease file-permissions, they sometimes cause issues Signed-off-by: Michael Kaufmann (d00p) --- lib/configfiles/gentoo.xml | 44 ++++++++++++++-------------- lib/configfiles/jessie.xml | 24 +++++++-------- lib/configfiles/precise.xml | 36 +++++++++++------------ lib/configfiles/rhel_centos.xml | 48 +++++++++++++++--------------- lib/configfiles/trusty.xml | 36 +++++++++++------------ lib/configfiles/wheezy.xml | 52 ++++++++++++++++----------------- 6 files changed, 120 insertions(+), 120 deletions(-) diff --git a/lib/configfiles/gentoo.xml b/lib/configfiles/gentoo.xml index 90e66578..252c0691 100644 --- a/lib/configfiles/gentoo.xml +++ b/lib/configfiles/gentoo.xml @@ -912,7 +912,7 @@ bind-check-interval=180 + chmod="0644"> password = @@ -923,7 +923,7 @@ query = SELECT destination FROM mail_virtual WHERE email = '%s' AND trim(destina + chown="root:postfix" chmod="0644"> password = @@ -934,7 +934,7 @@ query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = + chown="root:postfix" chmod="0644"> password = @@ -946,7 +946,7 @@ query = SELECT CONCAT(homedir,maildir) FROM mail_users WHERE email = '%s' + chown="root:postfix" chmod="0644"> password = @@ -957,7 +957,7 @@ query = SELECT DISTINCT username FROM mail_users WHERE email in ((SELECT mail_vi + chmod="0644"> password = @@ -969,7 +969,7 @@ query = SELECT uid FROM mail_users WHERE email = '%s' + chmod="0644"> password = @@ -1416,7 +1416,7 @@ debugger_command = //service[@type='smtp']/general/files[@index=0] - + > /etc/portage/package.use]]> + chmod="0644" backup="true"> + chmod="0644" backup="true"> dbname= user= password= @@ -1561,7 +1561,7 @@ iterate_query = "SELECT username AS user FROM mail_users WHERE (imap = 1 OR pop3 + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> MYSQL_USERNAME @@ -1912,7 +1912,7 @@ MYSQL_AUXOPTIONS_FIELD CONCAT("allowimap=",imap,",allowpop3=",pop3) ]]> - - - - > /etc/portage/package.use]]> - - @@ -3082,7 +3082,7 @@ account required pam_mysql.so user= passwd= - + - + chmod="0644" backup="true"> password diff --git a/lib/configfiles/jessie.xml b/lib/configfiles/jessie.xml index cf5b3451..8b4c2b3e 100644 --- a/lib/configfiles/jessie.xml +++ b/lib/configfiles/jessie.xml @@ -918,7 +918,7 @@ bind-check-interval=180 + chmod="0644"> password = @@ -929,7 +929,7 @@ query = SELECT destination FROM mail_virtual WHERE email = '%s' AND trim(destina + chown="root:postfix" chmod="0644"> password = @@ -940,7 +940,7 @@ query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = + chown="root:postfix" chmod="0644"> password = @@ -952,7 +952,7 @@ query = SELECT CONCAT(homedir,maildir) FROM mail_users WHERE email = '%s' + chown="root:postfix" chmod="0644"> password = @@ -963,7 +963,7 @@ query = SELECT DISTINCT username FROM mail_users WHERE email in ((SELECT mail_vi + chmod="0644"> password = @@ -975,7 +975,7 @@ query = SELECT uid FROM mail_users WHERE email = '%s' + chmod="0644"> password = @@ -2012,7 +2012,7 @@ dict { + chmod="0644" backup="true"> - - - + - + chmod="0644" backup="true"> password diff --git a/lib/configfiles/precise.xml b/lib/configfiles/precise.xml index 63f3f02d..6745dd43 100644 --- a/lib/configfiles/precise.xml +++ b/lib/configfiles/precise.xml @@ -380,7 +380,7 @@ local-address=,127.0.0.1 + chmod="0644"> password = @@ -391,7 +391,7 @@ query = SELECT destination FROM mail_virtual WHERE email = '%s' AND trim(destina + chown="root:postfix" chmod="0644"> password = @@ -402,7 +402,7 @@ query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = + chown="root:postfix" chmod="0644"> password = @@ -414,7 +414,7 @@ query = SELECT CONCAT(homedir,maildir) FROM mail_users WHERE email = '%s' + chown="root:postfix" chmod="0644"> password = @@ -425,7 +425,7 @@ query = SELECT DISTINCT username FROM mail_users WHERE email in ((SELECT mail_vi + chmod="0644"> password = @@ -437,7 +437,7 @@ query = SELECT uid FROM mail_users WHERE email = '%s' + chmod="0644"> password = @@ -694,7 +694,7 @@ debugger_command = //service[@type='smtp']/general/files[@index=0] + chmod="0644"> + chown="root:root" chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> dbname= user= password= @@ -971,7 +971,7 @@ iterate_query = SELECT username AS user FROM mail_users WHERE (imap = 1 OR pop3 - - @@ -1074,7 +1074,7 @@ MYSQL_AUXOPTIONS_FIELD CONCAT("allowimap=",imap,",allowpop3=",pop3) - - @@ -1364,7 +1364,7 @@ no + chmod="0644" backup="true"> MYSQLUser @@ -1411,7 +1411,7 @@ UPLOADGID= - + - + chmod="0644" backup="true"> password diff --git a/lib/configfiles/rhel_centos.xml b/lib/configfiles/rhel_centos.xml index 0703c781..800dc845 100644 --- a/lib/configfiles/rhel_centos.xml +++ b/lib/configfiles/rhel_centos.xml @@ -78,7 +78,7 @@ + chmod="0644"> password = @@ -89,7 +89,7 @@ query = SELECT destination FROM mail_virtual WHERE email = '%s' AND trim(destina + chown="root:postfix" chmod="0644"> password = @@ -100,7 +100,7 @@ query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = + chown="root:postfix" chmod="0644"> password = @@ -112,7 +112,7 @@ query = SELECT CONCAT(homedir,maildir) FROM mail_users WHERE email = '%s' + chown="root:postfix" chmod="0644"> password = @@ -123,7 +123,7 @@ query = SELECT DISTINCT username FROM mail_users WHERE email in ((SELECT mail_vi + chmod="0644"> password = @@ -135,7 +135,7 @@ query = SELECT uid FROM mail_users WHERE email = '%s' + chmod="0644"> password = @@ -270,7 +270,7 @@ dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/libexec/dove + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644"> - - + - + chmod="0644" backup="true"> password diff --git a/lib/configfiles/trusty.xml b/lib/configfiles/trusty.xml index 73e3af62..7da3e553 100644 --- a/lib/configfiles/trusty.xml +++ b/lib/configfiles/trusty.xml @@ -400,7 +400,7 @@ local-address=,127.0.0.1 + chmod="0644"> password = @@ -411,7 +411,7 @@ query = SELECT destination FROM mail_virtual WHERE email = '%s' AND trim(destina + chown="root:postfix" chmod="0644"> password = @@ -422,7 +422,7 @@ query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = + chown="root:postfix" chmod="0644"> password = @@ -434,7 +434,7 @@ query = SELECT CONCAT(homedir,maildir) FROM mail_users WHERE email = '%s' + chown="root:postfix" chmod="0644"> password = @@ -445,7 +445,7 @@ query = SELECT DISTINCT username FROM mail_users WHERE email in ((SELECT mail_vi + chmod="0644"> password = @@ -457,7 +457,7 @@ query = SELECT uid FROM mail_users WHERE email = '%s' + chmod="0644"> password = @@ -714,7 +714,7 @@ debugger_command = //service[@type='smtp']/general/files[@index=0] + chmod="0644"> + chown="root:root" chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> dbname= user= password= @@ -965,7 +965,7 @@ iterate_query = SELECT username AS user FROM mail_users WHERE (imap = 1 OR pop3 - - @@ -1068,7 +1068,7 @@ MYSQL_AUXOPTIONS_FIELD CONCAT("allowimap=",imap,",allowpop3=",pop3) - - @@ -1358,7 +1358,7 @@ no + chmod="0644" backup="true"> MYSQLUser @@ -1405,7 +1405,7 @@ UPLOADGID= - + - + chmod="0644" backup="true"> password diff --git a/lib/configfiles/wheezy.xml b/lib/configfiles/wheezy.xml index f9dfc8a4..27c20553 100644 --- a/lib/configfiles/wheezy.xml +++ b/lib/configfiles/wheezy.xml @@ -742,7 +742,7 @@ bind-check-interval=180 + chmod="0644"> password = @@ -753,7 +753,7 @@ query = SELECT destination FROM mail_virtual WHERE email = '%s' AND trim(destina + chown="root:postfix" chmod="0644"> password = @@ -764,7 +764,7 @@ query = SELECT domain FROM panel_domains WHERE domain = '%s' AND isemaildomain = + chown="root:postfix" chmod="0644"> password = @@ -776,7 +776,7 @@ query = SELECT CONCAT(homedir,maildir) FROM mail_users WHERE email = '%s' + chown="root:postfix" chmod="0644"> password = @@ -787,7 +787,7 @@ query = SELECT DISTINCT username FROM mail_users WHERE email in ((SELECT mail_vi + chmod="0644"> password = @@ -799,7 +799,7 @@ query = SELECT uid FROM mail_users WHERE email = '%s' + chmod="0644"> password = @@ -2463,7 +2463,7 @@ virtual_mailbox_limit = 0 //service[@type='smtp']/general/files[@index=0] + chmod="0644"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> + chmod="0644" backup="true"> //service[@type='mail']/general/files[@index=1] + chmod="0644" backup="true"> //service[@type='mail']/general/files[@index=1] + chmod="0644" backup="true"> - - - - @@ -4734,7 +4734,7 @@ no + chmod="0644" backup="true"> - + - + chmod="0644" backup="true"> password