LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-16-2003, 01:05 PM   #1
stuart39
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Rep: Reputation: 0
Question tuning/securing and ntp sync' in


hey, slackware has been powering my schools webserver for sometime now, i would like to know what things i should be doing to tune and secure the linux. it runs apache, mysql, webmin, usermin, sendmail and ssh servers.

also how can i set up ntpd to sync the hardware clock with a time server somewhere in scotland - my local time, since many of the php scripts on the site need accurate times.

thanks
 
Old 12-16-2003, 02:31 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
/etc/ntp.conf
Code:
restrict default noquery notrust nomodify
restrict 127.0.0.1
server <your server>
driftfile /etc/ntp.drift
logfile /var/log/ntp.log
Something like that should do the syncing.
By a cron-job every once in a while run
hwclock -systohc (how often would depend
on how often the box reboots ;} - note that
by default a ntpd sync will fail if the difference
exceeds 3600 seconds. If this is the case
run ntpdate <server> manually after having
stopped ntpd)


Cheers,
TInk
 
Old 12-16-2003, 02:48 PM   #3
stuart39
LQ Newbie
 
Registered: Oct 2003
Posts: 9

Original Poster
Rep: Reputation: 0
ta

stuart
 
Old 02-16-2005, 11:03 AM   #4
edafe
Member
 
Registered: Feb 2005
Posts: 44

Rep: Reputation: 15
Please have a look at:

http://www.edafe.org/slackware/index.html#ntp

Regards,
Edafe
 
  


Reply



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
redusing the ntp sync during booting hasher Linux - Software 0 03-23-2005 07:14 AM
NTP Client How to Sync automatically minil Programming 3 03-03-2005 02:52 AM
ntp time sync eyewittness Linux - Networking 2 08-11-2004 09:18 AM
NTP cannot work with timeserver, NTP-d can jerryvapps Linux - Networking 0 08-04-2004 02:04 PM
NTP sync problems rbutler Linux - Newbie 0 01-17-2003 01:51 PM

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

All times are GMT -5. The time now is 03:37 PM.

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