From owner-freebsd-questions@FreeBSD.ORG Wed Nov 10 11:30:12 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 887C916A4CF for ; Wed, 10 Nov 2004 11:30:12 +0000 (GMT) Received: from top.daemonsecurity.com (FW-182-254.go.retevision.es [62.174.254.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8245C43D49 for ; Wed, 10 Nov 2004 11:30:11 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [192.168.0.32] (charm.daemonsecurity.com [192.168.0.32]) by top.daemonsecurity.com (Postfix) with ESMTP id 05632A1426 for ; Wed, 10 Nov 2004 12:30:08 +0100 (CET) Message-ID: <4191FBB7.6090509@locolomo.org> Date: Wed, 10 Nov 2004 12:29:59 +0100 From: Erik Norgaard Organization: Loco Lomography User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040918 X-Accept-Language: en, en-us, da, it, es MIME-Version: 1.0 To: FreeBSD Questions X-Enigmail-Version: 0.84.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: BIND9 on 4.10: couldn't open pid file: permission denied X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2004 11:30:12 -0000 Hi, I had a working BIND9 running but needed to restart after updating the zone file with the following command: # /usr/local/sbin/named -g -u bind -t /var/named -c /etc/named.conf But this failed: Nov 10 12:23:58.110 starting BIND 9.2.3 -g -u bind -t /var/named -c /etc/named.conf Nov 10 12:23:58.111 using 1 CPU Nov 10 12:23:58.118 loading configuration from '/etc/named.conf' Nov 10 12:23:58.120 listening on IPv4 interface vr0, 192.168.0.4#53 Nov 10 12:23:58.121 listening on IPv4 interface vr1, 10.0.0.1#53 Nov 10 12:23:58.122 listening on IPv4 interface lo0, 127.0.0.1#53 Nov 10 12:23:58.132 none:0: open: /usr/local/etc/rndc.key: file not found Nov 10 12:23:58.133 couldn't add command channel 127.0.0.1#953: file not found Nov 10 12:23:58.133 none:0: open: /usr/local/etc/rndc.key: file not found Nov 10 12:23:58.133 couldn't add command channel ::1#953: file not found Nov 10 12:23:58.134 could not open entropy source /dev/random: file not found Nov 10 12:23:58.134 ignoring config file logging statement due to -g option Nov 10 12:23:58.134 couldn't open pid file '/var/run/named.pid': Permission denied Nov 10 12:23:58.134 exiting (due to early fatal error) The odd thing is the directories have the following permissions: drwxrwxr-x 6 bind bind 512 Jun 24 11:16 var var: drwxrwxr-x 3 bind bind 512 Jun 24 11:16 log drwxrwxr-x 3 bind bind 512 Nov 10 11:53 run drwxrwxr-x 3 bind bind 512 Jun 24 11:16 tmp and there is no named.pid file in run with other owner ship messing things up. I can start named with '-u root' but I'd rather not. Any suggestions? Thanks, Erik -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2