[Samba] use samba timeserver for linux box

Andrew Bartlett abartlet at samba.org
Sat Oct 26 04:19:01 GMT 2002


Graham Vincent wrote:
> 
> Hello.
> 
> I have a small network with a dialup connection to the internet. When
> the server is online to collect mail, etc I use ntpdate to synchronise
> it with a local timeserver.
> 
> The windows machines on the network set their time using the timeserver
> in Samba with a "net time ..." bat file. This works well.
> 
> I would like to synchronise the linux machines using the samba time
> server but have been unable to work out how to do it? Setting up an ntp
> daemon seems a bit over the top when there is a perfectly good Samba
> timeserver already running.
> 
>  How can I access the Samba timeserver to set the time on a linux machine?

Use 'net time' :-)

In Samba 3.0 we have added a 'net' command with some of the same syntax
as the windows equiv.  The net time command has a '-S' option, which
will set the time based on the timestamp in the initial protocol
excachge.

Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net



More information about the samba mailing list