[Samba] Re: Logon Hours problems (really stuck)
dave at dcdata.co.za
Fri Feb 4 08:43:37 GMT 2005
I haven't tried what you suggested yet however there is definitely something
wrong with the time on my Samba server:
In my smb.conf I have the following under my [netlogon] share which creates
a log indicating user login times:
preexec = echo "%u logged into %h from %m (%I) at %T running %a." >>
What is interesting is that the time indicated in my /tmp/samba-login.log is
two hours behind the actual time on the server (which is synched to an
international time server). This is what I get in the log:
aw088 logged into tux from lab4_6_208 (10.0.6.208) at 2005/02/04 08:39:25
If I type "date" on the server this is what I get:
Fri Feb 4 10:39:06 SAST 2005
As you can see, Samba believes it's two hours behind the actual (correct)
time of the server.
The "time offset = 120" option in the smb.conf does not seem to make any
Is this still related to the hardware clock issues etc. you've mentioned
Thanks for all your help so far, greatly appreciated.
D c D a t a
Tel +27 33 342 7003
Fax +27 33 345 4155
Cell +27 82 4147413
support at dcdata.co.za
Powered by Linux, driven by passion !
"Computers are not intelligent. They only think they are."
----- Original Message -----
From: "Christoph Scheeder" <christoph.scheeder at scheeder.de>
To: "David Wilson" <dave at dcdata.co.za>
Cc: <samba at lists.samba.org>
Sent: Thursday, February 03, 2005 11:44 AM
Subject: Re: [Samba] Re: Logon Hours problems (really stuck)
> what i do is the following setup for linux-servers and time:
> 1.) set hardware-clock to GMT,
> 2.) tell the system the hardwareclock is set to GMT (how depends on
> 3.) set local timezone to GMT+2 (again, depends on
> 4.) check all win-Clients to have the correct timezone set
> after that your system-clock should be showing the correct time in linux,
> and samba should use the correct kickoff times.
> as a sideefect it gives you the possibility to use ntp to sync your clock
> any timeserver out there in the internet.
> David Wilson schrieb:
>> Hi guys,
>> Unfortunately this is still happening I've tried restarting Samba. Users
>> who should be denied access after 21:00 are being denied access at 19:00.
>> Our time zone in South Africa is GMT+2. Perhaps I should set the timezone
>> on the server to UTC/GMT ?
>> Do you think this will help ? Should I then leave the time set to the
>> current time in South Africa ? Or should I set the time to the time at
>> UTC/GMT ?
>> There's something I must be missing here.
>> Kindest regards
>> David Wilson
>> D c D a t a
>> Tel +27 33 342 7003
>> Fax +27 33 345 4155
>> Cell +27 82 4147413
>> support at dcdata.co.za
>> Powered by Linux, driven by passion !
>> "Computers are not intelligent. They only think they are."
More information about the samba