Can't open KOD db file /var/db/ntp-kod for writing
by ychaouche from LinuxQuestions.org on (#5D0XT)
Dear #LQ,
I was wondering if any of you already solved this error/warning with sntp :
Code:ychaouche#ychaouche-PC 10:23:44 ~ $ sntp 10.10.10.100
19 Jan 10:24:45 sntp[7193]: Started sntp
2021-01-19 10:24:45.758437 (-0100) -0.00801 +/- 0.011505 secs
19 Jan 10:24:45 sntp[7193]: Can't open KOD db file /var/db/ntp-kod for writing!
ychaouche#ychaouche-PC 10:24:45 ~ $
If executed with sudo, the message disappears. How should I solve this ? should I simply change permissions on the file ? (file exists)
Code:ychaouche#ychaouche-PC 10:26:44 ~ $ ls /var/db/ntp-kod
-rw-r--r-- 1 root root 0 Jan 19 10:26 /var/db/ntp-kod
ychaouche#ychaouche-PC 10:35:43 ~ $Any help appreciated :)


I was wondering if any of you already solved this error/warning with sntp :
Code:ychaouche#ychaouche-PC 10:23:44 ~ $ sntp 10.10.10.100
19 Jan 10:24:45 sntp[7193]: Started sntp
2021-01-19 10:24:45.758437 (-0100) -0.00801 +/- 0.011505 secs
19 Jan 10:24:45 sntp[7193]: Can't open KOD db file /var/db/ntp-kod for writing!
ychaouche#ychaouche-PC 10:24:45 ~ $
If executed with sudo, the message disappears. How should I solve this ? should I simply change permissions on the file ? (file exists)
Code:ychaouche#ychaouche-PC 10:26:44 ~ $ ls /var/db/ntp-kod
-rw-r--r-- 1 root root 0 Jan 19 10:26 /var/db/ntp-kod
ychaouche#ychaouche-PC 10:35:43 ~ $Any help appreciated :)