OpenNTPD Client Setup

Install

debian / ubuntu

apt purge ntp
apt install ntpdate openntpd adjtimex

slackware

groupadd -g 217 _ntp

# avoid skeletons
useradd -u 217 -m -d /var/empty/openntpd -s /bin/false -g _ntp -k /dev/null _ntp

sbopkg -r
sbopkg -i openntpd
chmod +x /etc/rc.d/rc.openntpd

Setup

cp -pi /etc/openntpd.conf /etc/openntpd.conf.dist
vi /etc/openntpd.conf

server COUNTRY-CODE.pool.ntp.org
server 0.europe.pool.ntp.org
server 1.europe.pool.ntp.org
server time.cloudflare.com
sensor *

chown -R root. /var/empty/openntpd/
/etc/rc.d/rc.openntpd restart
pgrep -a ntpd

Troubles

ntp: bad privsep dir /var/empty/openntpd permissions: 40700

==> chown to root as shown above

Resources

https://slackbuilds.org/repository/15.0/network/openntpd/

http://www.openntpd.org/portable.html

https://man.openbsd.org/ntpd.conf

https://www.ntppool.org/en/

troubles

https://superuser.com/questions/1110383/openntpd-complains-about-an-empty-drift-file-on-archlinux

https://github.com/openntpd-portable/openntpd-portable/issues/46

https://github.com/openntpd-portable/openntpd-portable/issues/25


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5
Copyright © 2022 Pierre-Philipp Braun