From owner-freebsd-security Tue Jan 30 5:28:34 2001 Delivered-To: freebsd-security@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id F115B37B4EC for ; Tue, 30 Jan 2001 05:28:15 -0800 (PST) Received: (from des@localhost) by flood.ping.uio.no (8.9.3/8.9.3) id OAA20197; Tue, 30 Jan 2001 14:28:14 +0100 (CET) (envelope-from des@ofug.org) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Kris Kennaway Cc: Borja Marcos , freebsd-security@freebsd.org Subject: Re: More bind8 ports problems References: <3A7695CB.7E2F7CBB@sarenet.es> <20010130023131.A50095@xor.obsecurity.org> From: Dag-Erling Smorgrav Date: 30 Jan 2001 14:28:13 +0100 In-Reply-To: Kris Kennaway's message of "Tue, 30 Jan 2001 02:31:31 -0800" Message-ID: Lines: 31 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Kris Kennaway writes: > On Tue, Jan 30, 2001 at 11:22:03AM +0100, Borja Marcos wrote: > > Another problem: I have tried to run named as a "bind" > > user, but if I restart it with ndc, the new named runs as "root". > Don't know there. 'ndc restart' restarts named with no arguments, unless you pass them with the 'restart' command: # ndc restart -ubind -gbind -t/home/bind Use the following script instead: #!/bin/sh if [ -f /etc/defaults/rc.conf ] ; then . /etc/defaults/rc.conf fi if [ -n "${source_rc_confs_defined}" ] ; then source_rc_confs elif [ -f /etc/rc.conf ] ; then . /etc/rc.conf else echo "Where's your configuration?" exit 1 fi killall -KILL named ${named_program:-named} ${named_flags} DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message