From owner-freebsd-current@FreeBSD.ORG Sun Dec 11 16:50:53 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBC8F16A41F for ; Sun, 11 Dec 2005 16:50:53 +0000 (GMT) (envelope-from sten@blinkenlights.nl) Received: from ford.blinkenlights.nl (ford.blinkenlights.nl [213.204.211.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3759343D67 for ; Sun, 11 Dec 2005 16:50:51 +0000 (GMT) (envelope-from sten@blinkenlights.nl) Received: from tea.blinkenlights.nl (tea.blinkenlights.nl [192.168.1.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ford.blinkenlights.nl (Postfix) with ESMTP id CD5FEBDFA; Sun, 11 Dec 2005 17:50:53 +0100 (CET) Received: by tea.blinkenlights.nl (Postfix, from userid 101) id CBA86192; Sun, 11 Dec 2005 17:51:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by tea.blinkenlights.nl (Postfix) with ESMTP id B2FE2159; Sun, 11 Dec 2005 17:51:47 +0100 (CET) Date: Sun, 11 Dec 2005 17:51:47 +0100 (CET) From: Sten Spans To: Andre Guibert de Bruet In-Reply-To: <20051211105118.X17429@lexi.siliconlandmark.com> Message-ID: References: <20051211105118.X17429@lexi.siliconlandmark.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: current@freebsd.org Subject: Re: The /etc/ntp/ directory. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2005 16:50:53 -0000 On Sun, 11 Dec 2005, Andre Guibert de Bruet wrote: > Hi, > > I have a 7.0-CURRENT machine that I have upgraded time and time again, since > the 5.3-CURRENT days. While looking into setting up ntpd, I came across the > empty /etc/ntp/ directory. After perusing the man file, and the rcNG startup > scripts, I don't see anything that makes a reference to this directory. The > locations that I do find are: > > ntpd.conf: /etc/ntpd.conf > ntp.drift: /var/db/ntpd.drift > ntpd.pid: /var/run/ntpd.pid > Docs: /usr/share/doc/ntp > > I checked a fresh install of 6.0-RELEASE and this directory appears there too > but again, without any references. On 4.11-STABLE, it does not exist. Is > there any use at all for this directory? The most common usage is with an ntpd running as user ntp. This user normally can't write to /var/db/ ( ntpd renames a temporary ntpd.drift.XXXX to ntpd.drift ). So ntpd.drift is moved to /etc/ntp where user ntp does have write permissions. Not that FreeBSD supports non-root ntpd (afaik). -- Sten Spans "There is a crack in everything, that's how the light gets in." Leonard Cohen - Anthem