Networking Forums

Networking Forums > Computer Networking > Linux Networking > Samba file timestamp policy with Linux client .vs. Windows client

Reply
Thread Tools Display Modes

Samba file timestamp policy with Linux client .vs. Windows client

 
 
Richard Conway
Guest
Posts: n/a

 
      03-02-2004, 09:42 AM
I am experiencing a difference in file timestamp behaviour between a Linux
and Windows client accessing a SMB share hosted on a Windows 2003 Server
platform.

Files accessed by the Linux client are left with Modified and Accessed times
based upon the time on the client. Files accessed by the Windows client
(also running Windows 2003 Server) are left with Modified and Accessed times
based upon the time on the *server*. This is causing problems for me as I
have an application running on the server which uses these timestamps to
detect the presence of new or modified files - sometimes file updates are
missed when the update occurs from the Linux client if the system time on
the Linux client is behind that of the server.

Does anyone know if I can configure the SMB client running on the Linux
platform to behave the same as the Windows 2003 SMB client, i.e. I want my
timestamps to be set according to the current time on the server as opposed
to the client.

Thanks,
Richard.


 
Reply With Quote
 
 
 
 
John L. Cunningham
Guest
Posts: n/a

 
      03-04-2004, 03:15 PM
In article <40445a2c$(E-Mail Removed)>, Richard Conway wrote:

> Does anyone know if I can configure the SMB client running on the Linux
> platform to behave the same as the Windows 2003 SMB client, i.e. I want my
> timestamps to be set according to the current time on the server as opposed
> to the client.


NET TIME?


--
John L. Cunningham
 
Reply With Quote
 
Villy Kruse
Guest
Posts: n/a

 
      03-05-2004, 07:49 AM
On 4 Mar 2004 16:15:44 GMT,
John L. Cunningham <(E-Mail Removed)> wrote:


> In article <40445a2c$(E-Mail Removed)>, Richard Conway wrote:
>
>> Does anyone know if I can configure the SMB client running on the Linux
>> platform to behave the same as the Windows 2003 SMB client, i.e. I want my
>> timestamps to be set according to the current time on the server as opposed
>> to the client.

>
> NET TIME?
>



SMB file systems expects time stamp in local time. Therefore the linux
kernel needs to know the UTC to localtime offset to translate unix
time to localtime. This doesn't occur automatically, but setting the
timezone information in a call to settimeofdat() would do it (at least on
kernel 2.2). Remember that the unix and linux kernel does not otherwise
use localtime for anything so failing to set the timezone in the kernel
doesn't affect anything except SMB and VFAT file systems time stamps.


Villy
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When windows client send a file (about 150kb) to linux server, after about 40kb is sent they are blocked. alones Linux Networking 0 08-22-2007 01:38 AM
samba windows client sees foldes but has no right to write in folders bastian Linux Networking 2 04-08-2007 06:04 PM
Samba file transfers slow from Linux to Windows. Mark Storkamp Linux Networking 1 07-18-2006 11:03 AM
Samba x NIS x LDAP in a pure client/server Linux env Edilmar Alves Linux Networking 1 04-27-2004 08:47 PM
RFC1323 Timestamp. No timestamp if initial value is 0. Windows,Linux RFC1323 compatibility? Bartek Wydrowski Linux Networking 0 10-21-2003 04:05 AM



1 2 3 4 5 6 7 8 9 10 11