[ntp:questions] Synchronizing contrived time

Rob nomail at example.com
Sun Mar 16 12:02:29 UTC 2014


Amit Dor-Shifer <amit.dor.shifer at gmail.com> wrote:
> When overwriting /etc/ntp.conf with the suggested configuration, server can
> read conf, and client manages to sync to server's (skewed) time.
> <server>
> amit at zelda:~$ cat /etc/ntp.conf
> server 127.127.1.0 minpoll 4 maxpoll 4
> fudge 127.127.1.0 stratum 10
> amit at zelda:~$ sudo /usr/sbin/ntpd -g -c /etc/ntp.conf
> </server>
>
> <client>
> $ date
> Sun 16 Mar 2014 22:18:33 EST
> $ sudo ntpdate 192.168.1.11
> 16 Mar 21:28:08 ntpdate[72542]: step time server 192.168.1.11 offset
> -3026.504122 sec
> $ date
> Sun 16 Mar 2014 21:28:10 EST
> </client>
>
> I'm wondering why attempting to configure via an alternative conf file
> fails.
> Amit

Maybe you have one of those pesky "enhanced security" configs that
have restricted the files that a specific application can open.
(e.g. "selinux")

Those often make programs fail in unexplainable ways, especially because
most programs do not expect such restrictions and do not handle the
errors they cause (both in the software and in the documentation).



More information about the questions mailing list