Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-26-2004, 06:43 AM   #1
Registered: Apr 2004
Location: Harare - Zimbabwe
Distribution: Redhat 7.3
Posts: 35

Rep: Reputation: 15
Set up time server?

I have a red hat 7.3 file server running samba and mysql for my windows network. Is it possible to set this machine up as a time server as well, and if so, how?

Thanks in advance,
Old 06-26-2004, 09:35 AM   #2
Registered: Jun 2004
Location: Reading, UK
Distribution: SUSE 9.1, SUSE 9.2, SUSE 9.3, Knoppix 3.8, Gentoo 2005.0, cygwn, colinux
Posts: 100

Rep: Reputation: 15
Yep, anything is possible with Linux =). is the website. Basically you get it to check the time at another server (using ntpdate), and then get your other computers to set their time to that. There is a How-to on this at
Old 06-26-2004, 09:39 AM   #3
Senior Member
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
You'll need to install NTP, config the /etc/ntp.conf, run ntpdate to set the time, then start the ntpd service to keep the time in check and serve time to your network. There are a number of simple programs to use on the Windows computers to check against your server.

Go to << >> for more info.
Old 06-28-2004, 04:47 AM   #4
Registered: Apr 2004
Location: Harare - Zimbabwe
Distribution: Redhat 7.3
Posts: 35

Original Poster
Rep: Reputation: 15
I added "Time Server = Yes" in the global properties of my samba config file. I then created a batch file on a shared directory with "NET TIME \\mysqlserver /SET /YES". I then added a shedualed task to each of the windows machines to run the batch file on startup and everyday at 5am. This works a treat.

Now I just want to know if I could use the "internet time" setting in XP to read the time from the server instead of the batch file. I tried putting the server name, IP address and netbios address in the server box, but none of them worked. Any suggestions?

Old 06-28-2004, 05:09 AM   #5
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
If you use Samba as a PDC then you can include the NET TIME stuff in the logon.bat file.

Otherwise what you need is xntp to set up your linux machine as a NTP time server so that you can then use the XP internet time functionality.


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
how to set and sync system time with time server?? servnov Linux - Newbie 6 12-03-2013 08:55 PM
Doub about `net time set` and daylight saving time Thakowbbery Linux - Software 0 10-17-2005 06:23 AM
New server: set time zone to GMT? k1mgy Red Hat 3 12-19-2004 01:22 AM
How to syncronize my system time by public time server? hakansun Linux - Networking 1 09-10-2004 06:10 AM
Updating System time from some Inet time server Steave Linux - General 6 12-21-2001 03:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:23 PM.

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