[Samba] Time Server?
jay at metran.cx
Sat Jun 15 01:33:02 GMT 2002
A caveat about using the 'net time' method: the time only gets
set when the client logs onto the network, so if the client system
is left logged on for long periods, its clock will wander from the
Previously I wrote that you need the Samba system to be the PDC, but
I think this might not be a requirement. I haven't tried it, but
in a workgroup environment, or when Samba is set up with security =
user (but not in a domain) you might be able to configure the Samba
server with 'time server = yes', and find some way to configure each
Windows client to run the 'net time' command - such as with a
startup script, or using a method that runs the command every few
> In NT/2k/XP you need to allow your users to set the time (Users Manager).
> ----- Original Message -----
> From: "Sanjiv Bawa" <sbawa at tabmaster.com>
> To: <jay at jayts.cx>; "David Busby" <Busby at pnts.com>
> Cc: <samba at lists.samba.org>
> Sent: Saturday, June 15, 2002 5:54 AM
> Subject: RE: [Samba] Time Server?
> > This works fine with Win98, but does not work with NT/2k/XP because of a
> > permissions problem. Any way to get around that?
> > Thanks.
> > -----Original Message-----
> > From: samba-admin at lists.samba.org [mailto:samba-admin at lists.samba.org]On
> > Behalf Of Jay Ts
> > Sent: Friday, June 14, 2002 8:38 PM
> > To: David Busby
> > Cc: 'samba at lists.samba.org'
> > Subject: Re: [Samba] Time Server?
> > > I've got my Samba box (RedHat 7.2) running NTP client to sync with
> > > PARC. I want my windaz clients to be able to read time from it
> > > automagically. Is there a way to do that?
> > Yes; you need to run Samba as the PDC, then give the clients a logon
> > script (e.g., \\server\netlogon\logon.bat, stored on the Samba server)
> > that includes the command
> > net time \\<SERVER> /set /yes
> > In your smb.conf:
> > [global]
> > time server = yes
> > logon script = logon.bat
> > [netlogon]
> > path = /usr/local/samba/lib/netlogon
> > writable = no
> > browsable = no
> > The path can be wherever you want; I'm using /usr/local/samba/netlogon
> > as an example. I think the above will do it for you - I didn't really
> > check all of that! ;)
> > Jay Ts
> > jay at jayts.cx
More information about the samba