我很抱歉,如果这个答案以前,但search什么都没有给我。
我试图让ntpd开始在一个chroot目录。 ntpd的作品,但我坚持authentication。 我得到以下错误:
ntpd[22401]: Command line: /usr/sbin/ntpd -p /var/chroot/ntp/var/run/ntpd.pid -i /var/chroot/ntp -4 -u ntp:ntp systemd[1]: Started LSB: Start NTP daemon. ntp[22392]: Starting NTP server: ntpd. ntpd[22403]: proto: precision = 0.303 usec (-22) ntpd[22403]: line 52 column 17 syntax error, unexpected T_Key, expecting T_EOC ntpd[22403]: syntax error in /etc/ntp.conf line 52, column 17
这涉及到ntp.conf:
48: enable auth 49: keys /etc/ntp/ntpkeys 50: trustedkey 1 2 3 4 5 6 7 8 9 52: restrict 10.2.2.10 key 8
任何想法为什么authentication失败?
根据ntp.org文档,有一个问题访问键时chroot http://www.ntp.org/ntpfaq/NTP-s-trbl-general.htm#AEN5560注1: 还请注意,ntpd无法find密钥时在chroot环境中运行。