Using ntpdate(8) and UK time servers
Dominic Mitchell
dom at myrddin.demon.co.uk
Sun Sep 26 22:20:22 BST 1999
On Sun, Sep 26, 1999 at 06:13:20PM +0100, Mark Ovens wrote:
> 2 quick questions. Where is there a list of ntp servers in the UK
Pass. Your ISP may well have a couple lying around. Consult their dns. :-)
> and is using ntpdate(8) as simple as adding
>
> bg ntpdate <URL of ntp server>
>
> to /etc/ppp/ppp.linkup so that my PC's clock is synch'd every time
> I dial my ISP.
Not that simple. If you only ever run ppp as root, then fine, it will
work. If (like me) you run ppp as a lowly user, then it won't work
because it will be running with non-root privs. The correct answer is
to write a setuid wrapper (not always a terribly easy solution...) or to
do what I do which is to correct my clock about once a month (when I
remember by doing "sudo ntpdate ntphost1 ntphost2 ntphost" or whatever.
If you don't already have sudo installed, it's probably a worthwhile
download.
-Dom
More information about the Ukfreebsd
mailing list