View Full Version : [ubuntu] ntpd and security risk
sulekha
September 2nd, 2008, 05:10 AM
Hi,
I have read in a book that unless you have very specific needs(and your own GPS or atomic clock) running ntpd on your machine can be both a waste of resource and security risk. for that reason some sysadmins prefer ntpdate(often in a daily cronjob) to set their system time via NTP
how valid is this claim ?
cdenley
September 2nd, 2008, 09:11 AM
Hi,
I have read in a book that unless you have very specific needs(and your own GPS or atomic clock) running ntpd on your machine can be both a waste of resource and security risk. for that reason some sysadmins prefer ntpdate(often in a daily cronjob) to set their system time via NTP
how valid is this claim ?
Running any server creates potential for a security risk. I think ntpdate functions as a client which would make it safer. I believe ntpd would listen for network connections, which gives hackers something to attack.
simvin76
September 24th, 2008, 04:20 AM
Just as cdenley sais, there is always a risk with having a computer connected to the internet.
The difference between ntp-client and ntpd is that ntp-client is run once and then resets the clock to the correct time. ntpd (ntp daemon) runs all the time and speeds up or slows down the computers clock to adjust it to the correct time.
It is not advisable to adjust the clock in to large steps because that can mess up your system. If your clock is moved backwards for exampel dovecot (imap client) kills itself (http://wiki.dovecot.org/TimeMovedBackwards).
In '/etc/ntp.conf' you can specify which computers are allowed to use you computer as a timeserver and which computers are allowed to change the time on your computer.
But if you are running a firewall (shorewall or ufw for example) you should be safe anyway.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.