Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 2000 21:17:12 -0700 (PDT)
From:      david@mu.org
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/22038: Default location of named.pid file assumes named is running as root
Message-ID:  <20001017041712.9FC9F37B4F9@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         22038
>Category:       conf
>Synopsis:       Default location of named.pid file assumes named is running as root
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 16 21:20:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     David Drum
>Release:        4.1-STABLE
>Organization:
The Paul Saab Fan Club
>Environment:
FreeBSD gladden.mouseplanet.com 4.1-STABLE FreeBSD 4.1-STABLE #2: Tue Sep 5 05:11:37 CDT 2000     root@gladden.mouseplanet.com:/usr/src/sys/compile/GLADDEN  i386
>Description:
Default location for named's pid file is /var/run, which is owned by root.  This conflicts with named when it is launched with -u bind.  Named is able to create /var/run/named.pid at startup, but generates an error upon "ndc reload":
named[113]: couldn't create pid file '/var/run/named.pid'

>How-To-Repeat:
Set up named to run "-u bind".  Run named.  Run "ndc reload".  tail /var/log/messages
>Fix:
Move the pid file into a subdirectory that can be chowned to bind:

*** Makefile.inc.orig	Mon Oct 16 23:09:11 2000
--- Makefile.inc	Mon Oct 16 23:09:27 2000
***************
*** 9,15 ****
  VER!=		cat ${BIND_DIR}/Version
  
  PS=		ps
! PIDDIR=		/var/run
  DESTETC=	/etc/namedb
  DESTEXEC=	/usr/libexec
  DESTRUN=	/var/run
--- 9,15 ----
  VER!=		cat ${BIND_DIR}/Version
  
  PS=		ps
! PIDDIR=		/var/run/named
  DESTETC=	/etc/namedb
  DESTEXEC=	/usr/libexec
  DESTRUN=	/var/run


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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