SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Rep:
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?
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345
Rep:
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.
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
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:
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?
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:
# The first 4 services are really only used for debugging purposes, so
# we comment them out since they can otherwise be used for some nasty
# denial-of-service attacks. If you need them, uncomment them.
# echo stream tcp nowait root internal
# echo dgram udp wait root internal
# discard stream tcp nowait root internal
# discard dgram udp wait root internal
# daytime stream tcp nowait root internal
# daytime dgram udp wait root internal
# chargen stream tcp nowait root internal
# chargen dgram udp wait root internal
time stream tcp nowait root internal
time dgram udp wait root internal
And "netstat -elp" shows:
Quote:
tcp 0 0 *:time *:* LISTEN root 7904 2688/inetd
udp 0 0 *:time *:* root 7905 2688/inetd
So are we not covered by the tcp wrapper "inetd" to run as root? I don't know just asking, but I think this is a protected run as root server.
Please by all means, correct me if I am not accurate in my assumption here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.