From nobody@FreeBSD.org  Sun May 17 14:56:26 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 22A9B106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 17 May 2009 14:56:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 1197B8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 17 May 2009 14:56:26 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n4HEuP0K082245
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 17 May 2009 14:56:25 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n4HEuPi7082244;
	Sun, 17 May 2009 14:56:25 GMT
	(envelope-from nobody)
Message-Id: <200905171456.n4HEuPi7082244@www.freebsd.org>
Date: Sun, 17 May 2009 14:56:25 GMT
From: Wouter Snels <nospam@ofloo.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: named[32238]: the working directory is not writable
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         134616
>Category:       bin
>Synopsis:       named(8): the working directory is not writable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 17 15:00:06 UTC 2009
>Closed-Date:    Sat Mar 13 21:44:32 UTC 2010
>Last-Modified:  Sat Mar 13 21:44:32 UTC 2010
>Originator:     Wouter Snels
>Release:        FreeBSD 7.2 amd64
>Organization:
>Environment:
FreeBSD narf.ofloo.net 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 15 22:55:39 CEST 2009     ofloo@narf.ofloo.net:/usr/obj/usr/src/sys/OFL  amd64
>Description:
When restarting i always get this error in my log that the working directory of named wasn't writable, .. so i chown the /var/named directory to bind, .. but i noticed that after restarting the daemon that the permissions where set back to what they where.

instead of making such fixes:

directory           "/etc/namedb/letskeepthisdirwriteable";

it might be more reasonable to change, BIND.chroot.dist to use bind instead of root user.
>How-To-Repeat:
restart the bind daemon
>Fix:
# $FreeBSD: src/etc/mtree/BIND.chroot.dist,v 1.6.20.1 2009/04/15 03:14:26 kensmith Exp $
#
# Please see the file src/etc/mtree/README before making changes to this file.
#

/set type=dir uname=root gname=wheel mode=0755 << change uname=bind
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->dougb 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Mar 13 21:38:18 UTC 2010 
Responsible-Changed-Why:  
dougb has volunteered to look at named bugs. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=134616 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Sat Mar 13 21:42:38 UTC 2010 
State-Changed-Why:  

This problem has already been fixed in more recent versions of FreeBSD. 
You should update, in rough order of precedence, to 8-stable, 8.0-RELEASE, 
7-stable, or 7.3-RELEASE (when it comes out). Bonus points for being 
part of the solution by testing a 7.3 release candidate.  

hope this helps, 

Doug 

http://www.freebsd.org/cgi/query-pr.cgi?pr=134616 
>Unformatted:
