Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2008 19:56:17 -0500
From:      Martin McCormick <martin@dc.cis.okstate.edu>
To:        freebsd-questions@freebsd.org
Subject:   Re: /var/named Changes Ownership to Root on Boot 
Message-ID:  <200803210056.m2L0uHpH002127@m.it.okstate.edu>

next in thread | raw e-mail | index | archive | help
Chuck Swiger writes:
>/var/named is owned by root on all of my newer (5.x and later)  
>systems; I found an old 4.11 box with it owned by bind, though.  If  
>you're using named chroot'ed (as recommended), it will want /var/named/ 
>var/{dump/log/run/stats} writable by bind.

	That's pretty much what I have. the log files and all
are in /var/named and everything works perfectly if I manually
reset the ownership back to bind for the entire tree starting at
/var/named.

	I started seeing the behavior after FreeBSD5 and I did
in fact tell the configuration script of the bind port to chroot
since that is recommended. I thought that should tell the
process to assume the UID of bind and to chroot with /var/named
being the root directory.

	Thanks to you and one other responder, I will have
another look at the defaults and see if there is anything I can
change. I seem to have unwittingly got some systems set up right
and others set up to chown root:wheel /var/named.

Martin McCormick



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803210056.m2L0uHpH002127>