1 parent b2983bd commit be5f801Copy full SHA for be5f801
1 file changed
container/entrypoint.sh
@@ -5,8 +5,8 @@ OPTIONS=$@
5
# The first time around, it will not be owned by named:named, and thus it won't be writable
6
chown -R root:named /etc/bind /var/run/named
7
chown -R named:named /var/cache/bind
8
-chmod 770 /var/cache/bind /var/run/named
9
-chmod -R 750 /etc/bind
+chmod -R 640 /etc/bind
+chmod 770 /etc/bind /var/cache/bind /var/run/named
10
# By default - run in foreground and log to STDERR (console)
11
# can be changed by running container with: -e "BIND_LOG=-f"
12
exec /usr/sbin/named -c /etc/bind/named.conf $BIND_LOG -u named $OPTIONS
0 commit comments