How to get ntp working

Aaron Grewell agrewell
Mon May 17 11:57:31 PDT 2004


Check permissions on logfile and driftfile to make sure the uid/gid for ntpd
can write to them.  If UID/GID are set to root then that's the most likely
culprit.

-----Original Message-----
From: linux-users-bounces at smtp.linux-sxs.org
[mailto:linux-users-bounces at smtp.linux-sxs.org] On Behalf Of Alan Jackson
Sent: Sunday, December 28, 2003 6:57 PM
To: linux-users at linux-sxs.org
Subject: How to get ntp working


I'm frustrated. I've been trying for some time to get ntpd to work, and I
can't seem to get it right. The man page is downright confusing too.

In my logfile I'm getting messages like this :

28 Dec 20:31:13 ntpd[8503]: running as uid(123)/gid(123)
euid(123)/egid(123). 28 Dec 20:31:18 ntpd[8503]: sendto(140.162.8.3): Bad
file descriptor 28 Dec 20:31:25 ntpd[8503]: sendto(128.194.254.9): Bad file
descriptor

and it isn't resetting my clock. I'd like to have my main machine get the
right time, and then act as a stratum 3 for the other machines on my 
network. Can someone share a working config file with me?

I'm running gentoo 2.4.20 and ntp 4.1.1

Here's my /etc/ntp.conf

server 128.194.254.9 prefer
server 140.162.8.3 
driftfile /etc/ntp.drift
logfile /var/log/ntp.log
restrict 192.168.1.0 mask 255.255.255.0 notrust nomodify notrap

-- 
-----------------------------------------------------------------------
| Alan K. Jackson            | To see a World in a Grain of Sand      |
| alan at ajackson.org          | And a Heaven in a Wild Flower,         |
| www.ajackson.org           | Hold Infinity in the palm of your hand |
| Houston, Texas             | And Eternity in an hour. - Blake       |
-----------------------------------------------------------------------
_______________________________________________
Linux-users mailing list
Linux-users at smtp.linux-sxs.org
Unsubscribe/Suspend/Etc ->
http://smtp.linux-sxs.org/mailman/listinfo/linux-users


More information about the Linux-users mailing list