MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: ntpd failed to drop root privileges: Operation not permitted  (Read 6097 times)

0 Members and 1 Guest are viewing this topic.

Offline Administrator

  • Chinmay Dingore
  • Administrator
  • Full Member
  • *****
  • Posts: 135
  • Karma: +1/-0
    • View Profile
    • MilesWeb Internet Services Pvt Ltd
ntpd failed to drop root privileges: Operation not permitted
« on: December 20, 2013, 01:54:16 PM »
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

Quote
Nov 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.com - Your Hosting, Our Responsibility!
Unlimited Hosting Plans | Managed VPS with 20% Discount

MilesWeb Hosting Forum

ntpd failed to drop root privileges: Operation not permitted
« on: December 20, 2013, 01:54:16 PM »