Date: Mon, 3 Dec 2007 22:55:33 +0100 (CET) From: "Gelsema, P \(Patrick\) - FreeBSD" <freebsd@superhero.nl> To: freebsd-questions@freebsd.org Subject: named / BIND 9.4.1-P1 /etc/named/master ownership Message-ID: <4760.10.202.77.103.1196718933.squirrel@webmail.superhero.nl>
next in thread | raw e-mail | index | archive | help
Hi list,
I've got the following.
Everytime when I start /etc/rc.d/named I get the following issue.
hulk# /etc/rc.d/named start
etc/namedb/master changed
user expected 0 found 53 modified
gid expected 0 found 53 modified
Starting named.
If I leave it like this I get the following in /var/log/messages
Dec 3 19:10:57 hulk named[854]: dumping master file:
master/tmp-giHHnonSuW: open: permi
ssion denied
Dec 3 19:21:12 hulk named[854]: dumping master file:
master/tmp-MnAidukvm5: open: permi
ssion denied
Dec 3 19:25:48 hulk named[854]: dumping master file:
master/tmp-sCNwwiScbK: open: permi
ssion denied
This is solved if I do the following:
hulk# chown bind:bind /etc/named/master
However when I restart the service the problem re-appears.
In /etc/rc.conf I got the following.
hulk# cat /etc/rc.conf | grep named
named_enable="YES"
named_uid="bind"
named_chrootdir="/var/named"
I find it weird that named resets the ownership of the master directory as
named is running under uid bind and would require ownership or permissions
to dump, change any of the files.
Rgds,
Patrick
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4760.10.202.77.103.1196718933.squirrel>
