soften/correct permissions on pdns configs; fixes #991
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -382,7 +382,7 @@ exit "$RETVAL"
|
|||||||
</daemon>
|
</daemon>
|
||||||
<daemon name="powerdns" title="PowerDNS (standalone)">
|
<daemon name="powerdns" title="PowerDNS (standalone)">
|
||||||
<install><![CDATA[apt-get install pdns-server pdns-backend-mysql]]></install>
|
<install><![CDATA[apt-get install pdns-server pdns-backend-mysql]]></install>
|
||||||
<file name="/etc/powerdns/pdns.conf" backup="true" chmod="600">
|
<file name="/etc/powerdns/pdns.conf" backup="true" chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
#################################
|
#################################
|
||||||
# allow-axfr-ips Allow zonetransfers only to these subnets
|
# allow-axfr-ips Allow zonetransfers only to these subnets
|
||||||
@@ -906,7 +906,7 @@ include-dir=/etc/powerdns/froxlor/
|
|||||||
</file>
|
</file>
|
||||||
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
||||||
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
||||||
chown="root:root" chmod="600">
|
chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
# mysql-settings / you need to create the power-dns database for yourself!
|
# mysql-settings / you need to create the power-dns database for yourself!
|
||||||
launch=gmysql
|
launch=gmysql
|
||||||
@@ -926,7 +926,7 @@ gmysql-password=
|
|||||||
<daemon name="powerdns_bind"
|
<daemon name="powerdns_bind"
|
||||||
title="PowerDNS via bind-backend">
|
title="PowerDNS via bind-backend">
|
||||||
<install><![CDATA[apt-get install pdns-server]]></install>
|
<install><![CDATA[apt-get install pdns-server]]></install>
|
||||||
<file name="/etc/powerdns/pdns.conf" backup="true" chmod="600">
|
<file name="/etc/powerdns/pdns.conf" backup="true" chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
#################################
|
#################################
|
||||||
# allow-axfr-ips Allow zonetransfers only to these subnets
|
# allow-axfr-ips Allow zonetransfers only to these subnets
|
||||||
@@ -1451,7 +1451,7 @@ include-dir=/etc/powerdns/froxlor/
|
|||||||
</file>
|
</file>
|
||||||
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
||||||
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
||||||
chown="root:root" chmod="600">
|
chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
# Bind backend configuration
|
# Bind backend configuration
|
||||||
|
|
||||||
|
|||||||
@@ -371,7 +371,7 @@ exit "$RETVAL"
|
|||||||
</daemon>
|
</daemon>
|
||||||
<daemon name="powerdns" title="PowerDNS (standalone)">
|
<daemon name="powerdns" title="PowerDNS (standalone)">
|
||||||
<install><![CDATA[apt-get install pdns-server pdns-backend-mysql]]></install>
|
<install><![CDATA[apt-get install pdns-server pdns-backend-mysql]]></install>
|
||||||
<file name="/etc/powerdns/pdns.conf" backup="true" chmod="600">
|
<file name="/etc/powerdns/pdns.conf" backup="true" chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
#################################
|
#################################
|
||||||
# allow-axfr-ips Allow zonetransfers only to these subnets
|
# allow-axfr-ips Allow zonetransfers only to these subnets
|
||||||
@@ -880,7 +880,7 @@ include-dir=/etc/powerdns/froxlor/
|
|||||||
</file>
|
</file>
|
||||||
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
||||||
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
||||||
chown="root:root" chmod="600">
|
chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
# mysql-settings / you need to create the power-dns database for yourself!
|
# mysql-settings / you need to create the power-dns database for yourself!
|
||||||
launch=gmysql
|
launch=gmysql
|
||||||
@@ -900,7 +900,7 @@ gmysql-password=
|
|||||||
<daemon name="powerdns_bind"
|
<daemon name="powerdns_bind"
|
||||||
title="PowerDNS via bind-backend">
|
title="PowerDNS via bind-backend">
|
||||||
<install><![CDATA[apt-get install pdns-server]]></install>
|
<install><![CDATA[apt-get install pdns-server]]></install>
|
||||||
<file name="/etc/powerdns/pdns.conf" backup="true" chmod="600">
|
<file name="/etc/powerdns/pdns.conf" backup="true" chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
#################################
|
#################################
|
||||||
# allow-axfr-ips Allow zonetransfers only to these subnets
|
# allow-axfr-ips Allow zonetransfers only to these subnets
|
||||||
@@ -1410,7 +1410,7 @@ include-dir=/etc/powerdns/froxlor/
|
|||||||
</file>
|
</file>
|
||||||
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
||||||
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
||||||
chown="root:root" chmod="600">
|
chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
# Bind backend configuration
|
# Bind backend configuration
|
||||||
|
|
||||||
|
|||||||
@@ -371,7 +371,7 @@ exit "$RETVAL"
|
|||||||
</daemon>
|
</daemon>
|
||||||
<daemon name="powerdns" title="PowerDNS (standalone)">
|
<daemon name="powerdns" title="PowerDNS (standalone)">
|
||||||
<install><![CDATA[apt-get install pdns-server pdns-backend-mysql]]></install>
|
<install><![CDATA[apt-get install pdns-server pdns-backend-mysql]]></install>
|
||||||
<file name="/etc/powerdns/pdns.conf" backup="true" chmod="600">
|
<file name="/etc/powerdns/pdns.conf" backup="true" chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
#################################
|
#################################
|
||||||
# allow-axfr-ips Allow zonetransfers only to these subnets
|
# allow-axfr-ips Allow zonetransfers only to these subnets
|
||||||
@@ -880,7 +880,7 @@ include-dir=/etc/powerdns/froxlor/
|
|||||||
</file>
|
</file>
|
||||||
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
||||||
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
||||||
chown="root:root" chmod="600">
|
chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
# mysql-settings / you need to create the power-dns database for yourself!
|
# mysql-settings / you need to create the power-dns database for yourself!
|
||||||
launch=gmysql
|
launch=gmysql
|
||||||
@@ -900,7 +900,7 @@ gmysql-password=
|
|||||||
<daemon name="powerdns_bind"
|
<daemon name="powerdns_bind"
|
||||||
title="PowerDNS via bind-backend">
|
title="PowerDNS via bind-backend">
|
||||||
<install><![CDATA[apt-get install pdns-server]]></install>
|
<install><![CDATA[apt-get install pdns-server]]></install>
|
||||||
<file name="/etc/powerdns/pdns.conf" backup="true" chmod="600">
|
<file name="/etc/powerdns/pdns.conf" backup="true" chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
#################################
|
#################################
|
||||||
# allow-axfr-ips Allow zonetransfers only to these subnets
|
# allow-axfr-ips Allow zonetransfers only to these subnets
|
||||||
@@ -1410,7 +1410,7 @@ include-dir=/etc/powerdns/froxlor/
|
|||||||
</file>
|
</file>
|
||||||
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
||||||
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
||||||
chown="root:root" chmod="600">
|
chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
# Bind backend configuration
|
# Bind backend configuration
|
||||||
|
|
||||||
|
|||||||
@@ -369,7 +369,7 @@ exit "$RETVAL"
|
|||||||
</daemon>
|
</daemon>
|
||||||
<daemon name="powerdns" title="PowerDNS (standalone)">
|
<daemon name="powerdns" title="PowerDNS (standalone)">
|
||||||
<install><![CDATA[apt-get install pdns-server pdns-backend-mysql]]></install>
|
<install><![CDATA[apt-get install pdns-server pdns-backend-mysql]]></install>
|
||||||
<file name="/etc/powerdns/pdns.conf" backup="true" chmod="600">
|
<file name="/etc/powerdns/pdns.conf" backup="true" chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
#################################
|
#################################
|
||||||
# allow-axfr-ips Allow zonetransfers only to these subnets
|
# allow-axfr-ips Allow zonetransfers only to these subnets
|
||||||
@@ -893,7 +893,7 @@ include-dir=/etc/powerdns/froxlor/
|
|||||||
</file>
|
</file>
|
||||||
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
||||||
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
||||||
chown="root:root" chmod="600">
|
chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
# mysql-settings / you need to create the power-dns database for yourself!
|
# mysql-settings / you need to create the power-dns database for yourself!
|
||||||
launch=gmysql
|
launch=gmysql
|
||||||
@@ -913,7 +913,7 @@ gmysql-password=
|
|||||||
<daemon name="powerdns_bind"
|
<daemon name="powerdns_bind"
|
||||||
title="PowerDNS via bind-backend">
|
title="PowerDNS via bind-backend">
|
||||||
<install><![CDATA[apt-get install pdns-server]]></install>
|
<install><![CDATA[apt-get install pdns-server]]></install>
|
||||||
<file name="/etc/powerdns/pdns.conf" backup="true" chmod="600">
|
<file name="/etc/powerdns/pdns.conf" backup="true" chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
#################################
|
#################################
|
||||||
# allow-axfr-ips Allow zonetransfers only to these subnets
|
# allow-axfr-ips Allow zonetransfers only to these subnets
|
||||||
@@ -1438,7 +1438,7 @@ include-dir=/etc/powerdns/froxlor/
|
|||||||
</file>
|
</file>
|
||||||
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
||||||
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
||||||
chown="root:root" chmod="600">
|
chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
# Bind backend configuration
|
# Bind backend configuration
|
||||||
|
|
||||||
|
|||||||
@@ -391,7 +391,7 @@ mail IN A <SERVERIP>
|
|||||||
</daemon>
|
</daemon>
|
||||||
<daemon name="powerdns" title="PowerDNS (standalone)">
|
<daemon name="powerdns" title="PowerDNS (standalone)">
|
||||||
<install><![CDATA[emerge net-dns/pdns]]></install>
|
<install><![CDATA[emerge net-dns/pdns]]></install>
|
||||||
<file name="/etc/powerdns/pdns.conf" backup="true" chmod="600">
|
<file name="/etc/powerdns/pdns.conf" backup="true" chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
# Autogenerated configuration file template
|
# Autogenerated configuration file template
|
||||||
#################################
|
#################################
|
||||||
@@ -901,7 +901,7 @@ include-dir=/etc/powerdns/froxlor/
|
|||||||
</file>
|
</file>
|
||||||
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
||||||
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
||||||
chown="root:root" chmod="600">
|
chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
# mysql-settings / you need to create the power-dns database for yourself!
|
# mysql-settings / you need to create the power-dns database for yourself!
|
||||||
launch=gmysql
|
launch=gmysql
|
||||||
@@ -921,7 +921,7 @@ gmysql-password=
|
|||||||
<daemon name="powerdns_bind"
|
<daemon name="powerdns_bind"
|
||||||
title="PowerDNS via bind-backend">
|
title="PowerDNS via bind-backend">
|
||||||
<install><![CDATA[emerge net-dns/pdns]]></install>
|
<install><![CDATA[emerge net-dns/pdns]]></install>
|
||||||
<file name="/etc/powerdns/pdns.conf" backup="true" chmod="600">
|
<file name="/etc/powerdns/pdns.conf" backup="true" chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
# Autogenerated configuration file template
|
# Autogenerated configuration file template
|
||||||
#################################
|
#################################
|
||||||
@@ -1431,7 +1431,7 @@ include-dir=/etc/powerdns/froxlor/
|
|||||||
</file>
|
</file>
|
||||||
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
||||||
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
||||||
chown="root:root" chmod="600">
|
chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
#local-ipv6=YOUR_IPv6_(if_any)
|
#local-ipv6=YOUR_IPv6_(if_any)
|
||||||
bind-config=<BIND_CONFIG_PATH>named.conf
|
bind-config=<BIND_CONFIG_PATH>named.conf
|
||||||
|
|||||||
@@ -371,7 +371,7 @@ exit "$RETVAL"
|
|||||||
</daemon>
|
</daemon>
|
||||||
<daemon name="powerdns" title="PowerDNS (standalone)">
|
<daemon name="powerdns" title="PowerDNS (standalone)">
|
||||||
<install><![CDATA[apt-get install pdns-server pdns-backend-mysql]]></install>
|
<install><![CDATA[apt-get install pdns-server pdns-backend-mysql]]></install>
|
||||||
<file name="/etc/powerdns/pdns.conf" backup="true" chmod="600">
|
<file name="/etc/powerdns/pdns.conf" backup="true" chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
#################################
|
#################################
|
||||||
# allow-axfr-ips Allow zonetransfers only to these subnets
|
# allow-axfr-ips Allow zonetransfers only to these subnets
|
||||||
@@ -895,7 +895,7 @@ include-dir=/etc/powerdns/froxlor/
|
|||||||
</file>
|
</file>
|
||||||
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
||||||
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
||||||
chown="root:root" chmod="600">
|
chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
# mysql-settings / you need to create the power-dns database for yourself!
|
# mysql-settings / you need to create the power-dns database for yourself!
|
||||||
launch=gmysql
|
launch=gmysql
|
||||||
@@ -915,7 +915,7 @@ gmysql-password=
|
|||||||
<daemon name="powerdns_bind"
|
<daemon name="powerdns_bind"
|
||||||
title="PowerDNS via bind-backend">
|
title="PowerDNS via bind-backend">
|
||||||
<install><![CDATA[apt-get install pdns-server]]></install>
|
<install><![CDATA[apt-get install pdns-server]]></install>
|
||||||
<file name="/etc/powerdns/pdns.conf" backup="true" chmod="600">
|
<file name="/etc/powerdns/pdns.conf" backup="true" chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
#################################
|
#################################
|
||||||
# allow-axfr-ips Allow zonetransfers only to these subnets
|
# allow-axfr-ips Allow zonetransfers only to these subnets
|
||||||
@@ -1440,7 +1440,7 @@ include-dir=/etc/powerdns/froxlor/
|
|||||||
</file>
|
</file>
|
||||||
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
||||||
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
||||||
chown="root:root" chmod="600">
|
chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
# Bind backend configuration
|
# Bind backend configuration
|
||||||
|
|
||||||
|
|||||||
@@ -382,7 +382,7 @@ exit "$RETVAL"
|
|||||||
</daemon>
|
</daemon>
|
||||||
<daemon name="powerdns" title="PowerDNS (standalone)">
|
<daemon name="powerdns" title="PowerDNS (standalone)">
|
||||||
<install><![CDATA[apt-get install pdns-server pdns-backend-mysql]]></install>
|
<install><![CDATA[apt-get install pdns-server pdns-backend-mysql]]></install>
|
||||||
<file name="/etc/powerdns/pdns.conf" backup="true" chmod="600">
|
<file name="/etc/powerdns/pdns.conf" backup="true" chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
#################################
|
#################################
|
||||||
# allow-axfr-ips Allow zonetransfers only to these subnets
|
# allow-axfr-ips Allow zonetransfers only to these subnets
|
||||||
@@ -906,7 +906,7 @@ include-dir=/etc/powerdns/froxlor/
|
|||||||
</file>
|
</file>
|
||||||
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
||||||
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
||||||
chown="root:root" chmod="600">
|
chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
# mysql-settings / you need to create the power-dns database for yourself!
|
# mysql-settings / you need to create the power-dns database for yourself!
|
||||||
launch=gmysql
|
launch=gmysql
|
||||||
@@ -926,7 +926,7 @@ gmysql-password=
|
|||||||
<daemon name="powerdns_bind"
|
<daemon name="powerdns_bind"
|
||||||
title="PowerDNS via bind-backend">
|
title="PowerDNS via bind-backend">
|
||||||
<install><![CDATA[apt-get install pdns-server]]></install>
|
<install><![CDATA[apt-get install pdns-server]]></install>
|
||||||
<file name="/etc/powerdns/pdns.conf" backup="true" chmod="600">
|
<file name="/etc/powerdns/pdns.conf" backup="true" chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
#################################
|
#################################
|
||||||
# allow-axfr-ips Allow zonetransfers only to these subnets
|
# allow-axfr-ips Allow zonetransfers only to these subnets
|
||||||
@@ -1451,7 +1451,7 @@ include-dir=/etc/powerdns/froxlor/
|
|||||||
</file>
|
</file>
|
||||||
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
<command><![CDATA[mkdir -p /etc/powerdns/froxlor/]]></command>
|
||||||
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
<file name="/etc/powerdns/froxlor/pdns_froxlor.conf"
|
||||||
chown="root:root" chmod="600">
|
chown="root:pdns" chmod="640">
|
||||||
<content><![CDATA[
|
<content><![CDATA[
|
||||||
# Bind backend configuration
|
# Bind backend configuration
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user