ntpd failed to drop root privileges: Operation not permitted

Started by Administrator, December 20, 2013, 01:54:16 PM

Previous topic - Next topic

Administrator

Good Day Members,

Your container won't be able to execute the 'ntpdate' command (it sets the local date and time by polling the Network Time Protocol (NTP) server(s) given as the server arguments to determine the correct time) due to the following error message in /var/log/messages

QuoteNov 12 21:24:26 schd04 ntpd[15868]: kernel time sync status 0040
Nov 12 21:24:26 schd04 ntpd[15868]: getaddrinfo: "::1" invalid host address, ignored
Nov 12 21:24:27 schd04 ntpd[15868]: cap_set_proc() failed to drop root privileges: Operation not permitted

It is because your container does not has sys_time enabled. Please browse How to allow a VPS to set custom timezone ? to enable sys_time on your container.

Once done, ntpdate should start working as expected.
MilesWeb - Your Hosting, Our Responsibility!
Buy Web Hosting Plans | Managed VPS with 50% Discount