[arch-general] permission problem /var/lib/ntp after update (should it be ntp:ntp ?)
Guys, After update of ntp to 4.2.6.p5-4, I get the following log entries: Mar 1 09:55:50 archangel ntpd[1180]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied Checking password and group, there is a ntp for each. Should the UIG:GID for /var/lib/ntp be ntp:ntp? -- David C. Rankin, J.D.,P.E.
I'm running ntp 4.2.6.p5-4, and I haven't been getting that. What are the perms on /var/lib/ntp for you? Should be 755 ntp:root Thanks, Jarek Sedlacek On Thu, Mar 1, 2012 at 12:32 PM, David C. Rankin < drankinatty@suddenlinkmail.com> wrote:
Guys,
After update of ntp to 4.2.6.p5-4, I get the following log entries:
Mar 1 09:55:50 archangel ntpd[1180]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied
Checking password and group, there is a ntp for each. Should the UIG:GID for /var/lib/ntp be ntp:ntp?
-- David C. Rankin, J.D.,P.E.
Hello, On 2012-03-01 at 11:32 -0600, David C. Rankin wrote:
After update of ntp to 4.2.6.p5-4, I get the following log entries:
Mar 1 09:55:50 archangel ntpd[1180]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied
Checking password and group, there is a ntp for each. Should the UIG:GID for /var/lib/ntp be ntp:ntp?
Up to version 4.2.6.p5-3 the ntpd process ran as root. No it runs as the "ntp" user. [1][2] The files created by ntpd back then are owned by root. But now they are unable to be accessed by the ntp user. A simple "chown -R ntp /var/lib/ntp" should do the trick. [1]: https://bugs.archlinux.org/task/28704 [2]: http://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/ntp&id=735e96f2e5d4ce318525cc6ab1e51ee16e6fa27f
On 03/01/2012 03:18 PM, Sebastian Schwarz wrote:
Hello,
On 2012-03-01 at 11:32 -0600, David C. Rankin wrote:
After update of ntp to 4.2.6.p5-4, I get the following log entries:
Mar 1 09:55:50 archangel ntpd[1180]: frequency file /var/lib/ntp/ntp.drift.TEMP: Permission denied
Checking password and group, there is a ntp for each. Should the UIG:GID for /var/lib/ntp be ntp:ntp?
Up to version 4.2.6.p5-3 the ntpd process ran as root. No it runs as the "ntp" user. [1][2] The files created by ntpd back then are owned by root. But now they are unable to be accessed by the ntp user. A simple "chown -R ntp /var/lib/ntp" should do the trick.
[1]: https://bugs.archlinux.org/task/28704 [2]: http://projects.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/ntp&id=735e96f2e5d4ce318525cc6ab1e51ee16e6fa27f
Jarek, Sebastian, Thank you! chowning the UID to ntp fixed it. That makes sense now, because on another x86_64 box that I have not yet upgraded I don't get the error: 16:54 nirvana:~> pacman -Q ntp ntp 4.2.6.p5-3 16:54 nirvana:~> l /var/lib/ntp total 12 -rw-r--r-- 1 root root 8 Mar 1 16:00 ntp.drift Looks like it is set to ntp:ntp in 4.2.6.p5-5 now. -- David C. Rankin, J.D.,P.E.
participants (3)
-
David C. Rankin
-
Jarek Sedlacek
-
Sebastian Schwarz