Saturday, November 23, 2013

OpenNTPD - fatal: bad privsep dir permissions - SOLVED! - CentOS

After installing OpenNPTPD on CentOS 6.4 and starting the service, I got the following error message:
$ sudo service openntpd restart
Stopping ntpd:                                             [FAILED]
Starting ntpd:                                             [  OK  ]

Further investigation by taking a look at /var/log/messages showed the following:
# tail -f /var/log/messages
ntpd[9084]: fatal: bad privsep dir permissions

After adjusting permissions for /var/empty/ntp, the service was able to start properly. This directory was previously owned by ntp:
$ sudo chown -v root:root /var/empty/ntp

Verification:
$ sudo service openntpd restart
Stopping ntpd:                                           [  OK  ]
Starting ntpd:                                             [  OK  ]

# tail -f /var/log/messages
ntpd[9107]: ntp engine exiting
[9105]: Terminating
[9126]: listening on 127.0.0.1
[9126]: listening on ::1
[9126]: ntp engine ready

Courtesy of:


No comments:

Post a Comment