[arch-general] NTP: Possible permissions bug

Kyle Terrien kyleterrien at gmail.com
Fri May 9 11:26:59 EDT 2014

On 05/08/2014 11:00 PM, Gaetan Bisson wrote:
> [2014-05-08 18:34:54 -0700] Kyle Terrien:
>> I took out the "-u ntp:ntp" parameter (so ntp runs as root), and these
>> errors disappeared. Also, ntpq -p returns the NTP servers I'm
>> synchronized with. So, I'm pretty sure the issue is permissions related,
>> but I have no idea what it's running into. Any insight?
> What does `ls -la /var/lib/ntp/` say?
> Couldn't there be another daemon binding port 123?


In ntp-4.2.7, there is a file called .placeholder. This is not present
in ntp-4.2.6. Deleting the file seems to have no effect.

kyle at landru /var/lib
$ la ntp/
total 12
drwxr-xr-x  2 ntp  root 4096 May  6 03:14 .
drwxr-xr-x 32 root root 4096 May  9 08:11 ..
-rw-r--r--  1 root root    1 May  6 03:14 .placeholder

ntpd eventually creates its ntp.drift in this directory (if ntpd runs

As far as I can tell (using netstat -l to list listening ports), there
is nothing holding port 123.

- Output for ntp-4.2.6: <http://sprunge.us/FdVa>
- Output for ntp-4.2.7: <http://sprunge.us/feHI>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20140509/984a27d7/attachment-0001.asc>

More information about the arch-general mailing list