[Samba] Want timestamp to change when copying from WinXP to Samba share

Jeff Mello jmello at bbn.com
Tue Jul 11 14:19:49 GMT 2006

Hi folks,

Windows has a default behavior of preserving timestamps when you copy a
file. I want to update the 'Date Modified' timestamp to current time
when I copy a file from Windows XP to a Samba share, just like a unix
file copy would. Is there some way of doing this? Maybe w/ a script?
'dos filetimes' and 'dos filemode' don't seem to do the trick.

Here's my setup:
Samba 3.0.7 running on Gentoo Linux system.

Output from 'testparm' command (with small edits to protect the innocent):

        workgroup = WINDOWS
        security = DOMAIN
        log level = 4
        log file = /var/log/samba/log.%m
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        dns proxy = No
        wins server = <winsIPaddress>
        passdb expand explicit = No
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        force group = mygroup
        create mask = 0664
        directory mask = 0775
        inherit owner = Yes
        comment = My Folder
        path = /web/virtual/htdocs/myfolder
        valid users = WINDOWS\medfield
        read only = No

More information about the samba mailing list