​Can't open KOD db file /var/lib/sntp/kod for writing: Permission denied

This bug is easy to fix.  The permissions are not set properly for the file 
/var/lib/sntp/kod in Debian Buster.

The permissions should be
-rw-rw-rw- 1 root root 0 Jun 13 11:00 /var/lib/sntp/kod

Until the bug is fixed, you can fix the permissions yourself using chmod.

P.S. Mac OS X also includes sntp.  Apple has set the permissions of the kod 
file (called ntp-kod in Mac OS X) to rw for all users.

This solution is preferable than setting the suid bit in the sntp command from 
a security point of view.

Reply via email to