From 9cedf84dae26e6fd951618eed3b2afc283fac028 Mon Sep 17 00:00:00 2001 From: David Prevot Date: Mon, 13 Nov 2023 10:36:29 +0100 Subject: [PATCH] bind: Group accessibility for /var/chroot-bind --- bind/files/chroot-bind.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bind/files/chroot-bind.sh b/bind/files/chroot-bind.sh index c69651ba..cfcec28f 100644 --- a/bind/files/chroot-bind.sh +++ b/bind/files/chroot-bind.sh @@ -3,7 +3,7 @@ # Gregory Colpart # chroot (or re-chroot) script for bind9 -# tested on Debian Wheezy/Jessie/Stretch/Buster +# tested on Debian Wheezy/Jessie/Stretch/Buster/Bullseye # Exec this script after `(apt-get|aptitude|apt) install bind9` # and after *each* bind9 upgrade @@ -27,6 +27,8 @@ mkdir -p /var/chroot-bind/bin /var/chroot-bind/dev /var/chroot-bind/etc \ /var/chroot-bind/var/log /var/chroot-bind/var/run/named \ /var/chroot-bind/run/named /var/chroot-bind/usr/share/dns +chmod 750 /var/chroot-bind + # for conf if [ ! -h "/etc/bind" ]; then mv /etc/bind/ /var/chroot-bind/etc/