Samba ntp

Aus xinux.net
Zur Navigation springen Zur Suche springen

seting rights

chown root:ntp /var/lib/samba/ntp_signd/
chmod 700 /var/lib/samba/ntp_signd/

/etc/ntp.conf

server 127.127.1.0
fudge  127.127.1.0 stratum 10
server 0.pool.ntp.org iburst prefer
server 1.pool.ntp.org iburst prefer
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp
ntpsigndsocket /var/lib/samba/ntp_signd/
restrict default kod nomodify notrap nopeer mssntp
restrict 127.0.0.1
restrict 192.168.0.0 mask 255.255.0.0 nomodify
restrict 172.16.0.0  mask 255.240.0.0 nomodify
restrict 10.0.0.0    mask 255.0.0.0 nomodify

restart

service ntp restart