From owner-freebsd-ports@FreeBSD.ORG Tue Jun 29 13:57:59 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30B1D16A4CE for ; Tue, 29 Jun 2004 13:57:59 +0000 (GMT) Received: from ioskeha.hittite.isp.9tel.net (ioskeha.hittite.isp.9tel.net [62.62.156.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86C9C43D39 for ; Tue, 29 Jun 2004 13:57:58 +0000 (GMT) (envelope-from clefevre-lists@9online.fr) Received: from pc2k (240-114-118-80.kaptech.net [80.118.114.240]) by ioskeha.hittite.isp.9tel.net (Postfix) with SMTP id 1CB8A14B6A7; Tue, 29 Jun 2004 15:58:42 +0200 (CEST) Message-ID: <001101c45de1$0ef74f50$7890a8c0@dyndns.org> From: "Cyrille Lefevre" To: "David Du SERRE-TELMON" References: <40E145CE.5040706@informatique-securite.net> Date: Tue, 29 Jun 2004 15:57:46 +0200 Organization: ACME MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 cc: ports@FreeBSD.org Subject: Re: FreeBSD Port: isc-dhcp3-server-3.0.1.r14 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2004 13:57:59 -0000 "David Du SERRE-TELMON" wrote: > > I've noticed some problems with new port isc-dhcp3-server-3.0.1.r14,1 > and chuser option. > > - When chuser option is enable, pid file is write in /var/run/dhcpd/ > folder. But this folder seem not belong to dhcp user by default, and > dhcpd can't write the pid file inside. > - The file dhcpd.lease is create in root. After dhcpd loose his root > privileges, it can't offer new address because it can't write into > dhcpd.leases file. are you running -stable (4.x) or -current (5.x) ? uname -a do you still have any /usr/local/etc/rc.isc-*.conf files ? if any, what are their contents ? grep -s dhcpd_ /usr/local/etc/rc.isc-*.conf do you have a dhcpd user and group ? if not, try the following command : /usr/local/etc/rc.d/isc-dhcpd.sh install what values have your dhcpd_* variables in /etc/rc.conf (or /etc/rc.conf.d/dhcpd) if any ? grep -s dhcpd_ /etc/rc.conf /etc/rc.conf.d/dhcpd in the mean time, you may try : /usr/local/etc/rc.d/isc-dhcpd.sh stop ps -axo pid,comm | awk '/dhcpd/{print $1}' | xargs kill sleep 1 ps -axo pid,comm | awk '/dhcpd/{print $1}' | xargs kill -9 /usr/local/etc/rc.d/isc-dhcpd.sh uninstall (clean up what was not cleaned, aka dhcpd.leases) /usr/local/etc/rc.d/isc-dhcpd.sh start if that not work, could you send me the results of the following commands ? script pw show user dhcpd pw show group dhcpd grep -s dhcpd_ /etc/rc.conf /etc/rc.conf.d/dhcpd ls -ld /usr/local/etc/rc.isc-*.conf /usr/local/etc/rc.d/isc-dhcpd.sh stop ps -axo pid,comm | awk '/dhcpd/{print $1}' | xargs kill sleep 1 ps -axo pid,comm | awk '/dhcpd/{print $1}' | xargs kill -9 for file in /var/run/dhcpd* /var/db/dhcpd* do mv $file $file-; done mkdir /tmp/dhcpd; mv /*dhcpd* /tmp/dhcpd sh -x /usr/local/etc/rc.d/isc-dhcpd.sh start ls -la /var/run/dhcpd* /var/db/dhcpd* /*dhcpd* /usr/local/etc/rc.d/isc-dhcpd.sh stop ps -axo pid,comm | awk '/dhcpd/{print $1}' | xargs kill sleep 1 ps -axo pid,comm | awk '/dhcpd/{print $1}' | xargs kill -9 for file in /var/run/dhcpd*- /var/db/dhcpd*- do mv $file ${file%-}; done mv /tmp/dhcpd/* /; rm -rf /tmp/dhcpd exit mail -s "Re: FreeBSD Port: isc-dhcp3-server-3.0.1.r14" \ cyrille.lefevre@laposte.net < typescript Cyrille Lefevre. -- mailto:clefevre-lists@9online.fr