When I installed Bind 9.20.23 rpm by dnf command in Alma Linux 9,Bind
has been installed into /etc/opt/isc/scls/isc-bind/ while
working directory has been set as '/var/opt/isc/scls/isc-bind/named/data

infact this /etc/opt/isc/scls/isc-bind/named.conf file shows:
directory "/var/opt/isc/scls/isc-bind/named/data";

I think I cannot install Bind into standard directory, I don't know
.... What do you think.?
I solved issue removing the "pid-file" directive in named.conf so Bind
creates It as /var/opt/isc/scls/isc-bind/run/named/named.pid
What do you think about non standard path ?

systemctl edit isc-bind-named shows:

[Service]
ExecStart=
ExecStart=/opt/isc/isc-bind/root/usr/sbin/named -u named -4 -f $OPTIONS

Bind is running as named user

Il giorno mer 3 giu 2026 alle ore 09:50 Colin Vidal <[email protected]> ha scritto:
>
> Hi,
>
> > In named.conf In Alma Linux 9 Bind 9.20.23 Stable version, I set this 
> > directive:
> > pid-file "/run/named/named.pid";
> >
> > /var/named is mounted as root:root so there is no permission to write
> > pid file to /var/named
> > infact I see "permission denied" in messages file.
> >
> > /run/named is temporary file system, how can I force it to create It
> > with named:named permission ?
> >
> > What do you suggest me ?
>
> Are you starting named as root? (Passing -u <user> enable named to switch to 
> "user" after doing some operations that might requiring privileged user like 
> listening on ports < 1024 or writing the .pid file.)
>
> Perhaps something related to an SELinux labeling issue?
>
> --
> Colin Vidal -- [email protected]
> Internet Systems Consortium
-- 
Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from 
this list.

Reply via email to