network time in Slackware
My Slackware 11 pc loses time. It's an old pc but I replaced the motherboard watch battery and that didn't help. It loses about a minute a day...half hour a month. How do I set it up to read the time off the internet? Also, I have iptables running-which port needs to be opened up?
|
Install ntp package and add a cron job for ntpdate. See man page for more info.
|
If you have a good (non-dial-up) connection to the internet, ntpd used in conjunction with pool.ntp.org is a good option. Search the slackware forum here using "ntp" as your keyword and you'll find a thread on ntp that is fairly recent (within the last two months) and has a lot of really good info on setting up ntpd and ntp.conf.
|
ok, the ntp package was installed. I searched the forums and found a thread that told me how to configure rc.local, /etc/ntp.conf, and /etc/rc.d/rc.ntpd here:
http://www.linuxquestions.org/questi...&highlight=ntp Time gets updated now, but ntp is running as root. Is this a security vulnerability since my pc is a server and on 24/7? Could I run it as user nobody? How? |
Well, you can run it as non-root user, since it has -u option (check the man page) just for that.
|
Regarding root user for time protocol
I understand your concern about root for time server.
I believe (not sure) that the time server protocol is tcp wrapped protected by the inetd daemon; the same way that it protects the sendmail daemon for us. I noticed this in /etc/inetd.conf file: Quote:
Quote:
Please by all means, correct me if I am not accurate in my assumption here. Fogie. |
All times are GMT -5. The time now is 06:30 PM. |