Bind 9.16 port error still lingers
Michael Butler
imb at protected-networks.net
Sat May 2 15:31:54 UTC 2020
On 5/2/20 11:16 AM, The Doctor via freebsd-ports wrote:
> On Sat, May 02, 2020 at 04:32:10PM +0200, Christoph Moench-Tegeder wrote:
>> ## The Doctor via freebsd-ports (freebsd-ports at freebsd.org):
>>
>>> Subject: Bind 9.16 port error still lingers
>>
>> "Still"?
>>
>>> May 1 21:29:02 gallifrey named[90441]: Required root permissions to open '/var/run/named.pid'.
>>> May 1 21:29:02 gallifrey named[90441]: Please check file and directory permissions or reconfigure the filename.
>>
>> Did you?
>> BTW the default location for named's pidfile on FreeBSD is
>> /var/run/named/pid.
>>
>>> May 1 21:29:02 gallifrey named[90441]: parser.c:950: REQUIRE(obj != ((void *)0) && obj->type->rep == &cfg_rep_uint32) failed, back trace
>>
>> Some (configuration) value should be an integer, but isn't.
>>
>
> cat /var/run/named.pid
> 15640
>
> running bind911
>
> and ls -Fail /var/run/named.pid
>
> -rw-r--r-- 1 root wheel 6 May 1 21:38 /var/run/named.pid
By default, you need 'root' permissions to write to the /var/run
directory. As the port is configured on FreeBSD, BIND drops privileges
as soon as practical to that of the 'bind' user and group. For example:
imb at sarah:/home/imb> ls -l /var/run/named/
total 8
-rw-r--r-- 1 bind bind 4 Apr 30 21:05 pid
-rw------- 1 bind bind 102 Apr 30 21:05 session.key
It seems you have incorrectly changed the configuration by not taking
these permissions into account. Check your named.conf for the incorrect
definition of pid-file - it should be "/var/run/named/pid",
imb
More information about the freebsd-ports
mailing list