Public bug reported:

Binary package hint: samba

Hello,

When I upload a file to a remote Windows share from either Ubuntu
Dapper, Edgy  or Feisty (running on VMware) the "last modified"
timestamp on the file created on the Windows share is changed to the
current time.

This happens whether I use Nautilus to upload to the share or I mount it
using smbmount and the console cp command. cp -p does not appear to work
and returns an error.

This bug is very annoying because if I want to backup some photos or
other files by uploading it to a remote Windows share they will have
their original timestamps wiped out, causing the loss of valuable data
that could make the image vastly easier to find later.

Users are given no warning that their timestamps will be unnecessarily
destroyed either. This behaviour does not exist when uploading a file
from a Windows machine.

Files downloaded from a Windows share still have their original
timestamps intact. Only uploaded files seem to be effected.

Here is an example using a share mounted with smbmount.

[EMAIL PROTECTED]:/home/andrew# cp -fv ./Desktop/testdocument 
/mnt/tmpsmbfs/testdocument && cp -fv /mnt/tmpsmbfs/testdocument 
./Desktop/resultdocument && ls -la ./Desktop/testdocument && ls -la 
/mnt/tmpsmbfs/testdocument && ls -la ./Desktop/resultdocument
`./Desktop/testdocument' -> `/mnt/tmpsmbfs/testdocument'
`/mnt/tmpsmbfs/testdocument' -> `./Desktop/resultdocument'
-rw------- 1 andrew andrew 0 2006-11-27 21:55 ./Desktop/testdocument
-rwxr-xr-x 1 root root 0 2006-11-27 22:01 /mnt/tmpsmbfs/testdocument
-rwxr-xr-x 1 root root 0 2006-11-27 22:01 ./Desktop/resultdocument

[EMAIL PROTECTED]:/home/andrew# cp -fpv ./Desktop/testdocument 
/mnt/tmpsmbfs/testdocument && cp -fpv /mnt/tmpsmbfs/testdocument 
./Desktop/resultdocument && ls -la ./Desktop/testdocument && ls -la 
/mnt/tmpsmbfs/testdocument && ls -la ./Desktop/resultdocument
`./Desktop/testdocument' -> `/mnt/tmpsmbfs/testdocument'
cp: failed to preserve ownership for `/mnt/tmpsmbfs/testdocument': Operation 
not permitted

Thank you for your time.

** Affects: samba (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
Uploading files to remote Windows server - Modified timestamps
https://launchpad.net/bugs/73452

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to