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] <xmpp://[email protected]>.de
http://uplex.de/ <http://uplex.de/>
signature.asc
Description: Message signed with OpenPGP using GPGMail
------------------------------------------- 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
