[Samba] Re: Logon Hours problems (really stuck)
dave at dcdata.co.za
Wed Mar 2 21:01:21 GMT 2005
Thanks for all your help with this but I'm still stuck.
The logon hours restrictions worked 100% after I set the timezone to GMT and
set the clock to our local time here in South Africa. I then upgraded the
Samba version to 3.0.11 and suddenly the logon hours restrictions went wrong
again. I've tried all combinations op "time offset" in the smb.conf and
tried changing the timezone back to SAST but still no luck.
I've now downgraded back to Samba-3.0.9 and set the timezone back to GMT
however this time things still seem out by 2 hours e.g. 2 hours need to be
added to the logon times to allow users to log in whereas before this seemed
to work perfectly.
Could this really be a Slackware Linux issue ? The timezone and time
settings on the workstations are 100% correct.
Any ideas are 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: Saturday, February 05, 2005 10:51 AM
Subject: Re: [Samba] Re: Logon Hours problems (really stuck)
> yes that definitly sounds like a problem with the timezone-settings on the
> server, or a mismatch between timezones set on the server and the clients.
> Doubblecheck they are consistent and in sync.
> Last year i had on client pc of a customer beleave it was summertime but
> in fact
> that ended a week before.
> Result were, all files from this client stored to the samba server got
> timestamps 2 hours back in time. I guess if they had defined kickofftimes
> machine would have been kicked 2 hours too early. doesn't that sound a
> familiar to you?
> Fixed the clients timesetting and all was fine again.
> David Wilson schrieb:
>> Hi Christoph,
>> 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
>> running WinXP.
>> 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
>> below ?
>> Thanks for all your help so far, greatly appreciated.
>> 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."
>> ----- 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
>>> and samba should use the correct kickoff times.
>>> as a sideefect it gives you the possibility to use ntp to sync your
>>> clock with
>>> 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