[Samba] Re: Time server

Chris Smith chris at realcomputerguy.com
Thu Apr 29 14:09:57 GMT 2004


On Thu, 2004-04-29 at 04:34, Mike Stewart wrote:
> net stop "Windows Time"
> net time /setsntp:172.16.15.4  (my samba server)
> net start "Windows Time"
> 
> Still no errors but hasn't yet synchronised the time with the server.

Done this way Samba is out of the loop and time control is not a Samba
issue. You are instead looking for an ntp service to sync with. Set up
an ntp daemon on your server and all will be fine.

> I *can* use the DOS command:    net time \\172.16.15.4 /SET /y   and the
> clock
> does sync to the server.

This command would use Samba's time service (and not ntp) and could be
put in a logon script if desired. However, since ordinary domain users
cannot set the time it will generally fail with default permissions
unless an administrator logs on. I generally use this in a script only
for DOS based systems (Win9x, etc. which don't natively do ntp and have
no priviledge issues) while keeping NT based systems (NT/2k/XP) ntp
enabled.

Chris



More information about the samba mailing list