Hi, I suppose you didn't configure zone privileges to manipulate the clock. Also, please note that there isn't any point in running ntpd in zones (unless you have a very specific reason to do) because the global zone synchornizes the time and that is shared with zones.
Cheers, Adam > On 04 Feb 2016, at 12:56, the outsider <[email protected]> wrote: > > http://unix.stackexchange.com/questions/68016/error-when-running-ntpd-on-openvz-host-cap-set-proc-failed-to-drop-root-privi > > seems like a non-SmartOS related error? > > > Van: Paul Dunkler [mailto:[email protected]] > Verzonden: donderdag 4 februari 2016 12:45 > Aan: [email protected] > Onderwerp: [smartos-discuss] ntpd not starting up with > > Hi list, > > just tried to get ntp time daemon (ntpd) working in one of the latest > centos-7 lx-images. > > Could not get it working with the default configuration ("ntpd -u ntp:ntp"). > I am getting the following error: > cap_set_proc() failed to drop root privileges: Operation not permitted > > Did an strace and found following errors: > adjtimex(0x7fffff2ae920) = -1 EPERM (Operation not permitted) > connect(5, {sa_family=AF_UNSPEC, sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 16) > = -1 EINVAL (Invalid argument) > connect(5, {sa_family=AF_UNSPEC, sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 16) > = -1 EINVAL (Invalid argument) > connect(5, {sa_family=AF_UNSPEC, sa_data="\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}, 16) > = -1 EINVAL (Invalid argument) > adjtimex(0x7fffff2ae920) = -1 EPERM (Operation not permitted) > capset({_LINUX_CAPABILITY_VERSION_3, 0}, {CAP_NET_BIND_SERVICE|CAP_SYS_TIME, > CAP_NET_BIND_SERVICE|CAP_SYS_TIME, CAP_NET_BIND_SERVICE|CAP_SYS_TIME}) = -1 > EPERM (Operation not permitted) > > It's working well when i start it under the root user. > > Could supply whole strace output if needed. > > My version information: > [root@xxx ~]# uname -a > Linux xxx.xxx.xx 3.10.0 BrandZ virtual linux x86_64 x86_64 x86_64 GNU/Linux > > Image: > d1c80032-83d2-11e5-b89f-c317cd0ed1fd > > > — > Paul Dunkler > > ** * * UPLEX - Nils Goroll Systemoptimierung > > Scheffelstraße 32 > 22301 Hamburg > > tel +49 40 288 057 31 > mob +49 151 252 228 42 > fax +49 40 429 497 53 > > xmpp://[email protected] > > http://uplex.de/ > > smartos-discuss | Archives | Modify Your Subscription ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
