Subject: Re: ntpd run as ntpd can't set time of day
To: Sam Erde <samerde@eudoramail.com>
From: Aidan Cully <aidan@kublai.com>
List: current-users
Date: 06/09/2002 21:23:41
On Sun, Jun 09, 2002 at 08:58:23PM -0400, Allen Briggs wrote:
> On Mon, Jun 10, 2002 at 12:53:51AM +0100, Sam Erde wrote:
> > When run as ntpd pseudo user (e.g. when run chrooted), ntpd can't set the tod:
> > 
> > ntpd[202]: Can't set time of day: Device not configured
> 
> Do you have
> 
> 	pseudo-device clockctl
> 
> in your kernel config?  This is not in any kernel configurations by
> default.

This bit me too, and it took me quite a while to finally figure out
the solution.  I think /etc/defaults/rc.conf needs _some_ mention
of pseudo-device clockctl...  This is maybe not clear enough, but:
--- rc.conf.orig        Sun Jun  9 21:18:48 2002
+++ rc.conf     Sun Jun  9 21:21:14 2002
@@ -166,6 +166,10 @@
 
 # To run the ntpd(8) NTP server as an unprivileged user under a
 # chroot(2) cage, uncomment the following.
+# This option requires a /dev/clockctl device, and
+# the line
+#	pseudo-device clockctl
+# in the kernel config file.
 #
 #ntpd_chrootdir="/var/chroot/ntpd"
 
--end
--aidan