From owner-freebsd-questions@FreeBSD.ORG Fri Mar 21 00:56:18 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFEF4106564A for ; Fri, 21 Mar 2008 00:56:18 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from m.it.okstate.edu (m.it.okstate.edu [139.78.2.129]) by mx1.freebsd.org (Postfix) with ESMTP id B00338FC13 for ; Fri, 21 Mar 2008 00:56:18 +0000 (UTC) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (localhost.it.okstate.edu [127.0.0.1]) by m.it.okstate.edu (8.13.8/8.13.8) with ESMTP id m2L0uHpH002127 for ; Thu, 20 Mar 2008 19:56:18 -0500 (CDT) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <200803210056.m2L0uHpH002127@m.it.okstate.edu> to: freebsd-questions@freebsd.org Date: Thu, 20 Mar 2008 19:56:17 -0500 From: Martin McCormick Subject: Re: /var/named Changes Ownership to Root on Boot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Mar 2008 00:56:19 -0000 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