LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-04-2006, 03:53 PM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Rep: Reputation: 47
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?
 
Old 11-04-2006, 04:11 PM   #2
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
Install ntp package and add a cron job for ntpdate. See man page for more info.

Last edited by dunric; 11-04-2006 at 04:12 PM.
 
Old 11-04-2006, 04:16 PM   #3
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
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.
 
Old 11-04-2006, 08:24 PM   #4
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
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?
 
Old 11-05-2006, 01:10 AM   #5
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
Well, you can run it as non-root user, since it has -u option (check the man page) just for that.
 
Old 11-05-2006, 03:55 AM   #6
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
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:
# 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.

Fogie.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 10 network configuration. Problem with 8139 network card drivers ! Padmakiran Linux - Networking 8 03-27-2007 06:48 AM
Mandrake 9.2 network locks up from time to time Mugatu Mandriva 9 12-23-2006 04:18 PM
how to configure my network on slackware 10.0 so i can access a windows network salviadud Linux - Newbie 2 02-11-2005 01:19 PM
Network time-out Slackware 10 kern 2.6.7 Network everwhere NIC EdwardA Linux - Hardware 2 06-26-2004 08:16 AM
Network seems to die from time to time wbult Linux - Networking 4 11-06-2003 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration