[Samba] Re: Logon Hours problems (really stuck)

David Wilson dave at dcdata.co.za
Fri Feb 4 08:43:37 GMT 2005


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." >> 
/tmp/samba-login.log

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 
difference.

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
http://www.dcdata.co.za
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)


> Hi,
> 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 
> distro)
> 3.) set local timezone to GMT+2                  (again, depends on 
> distro)
> 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 
> with
> any timeserver out there in the internet.
> Christoph
>
> 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
>> http://www.dcdata.co.za
>> 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 mailing list