https://bugs.kde.org/show_bug.cgi?id=452210
Bug ID: 452210 Summary: KDE Dolphin not preserving modified date of files when copying to samba share Product: kde Version: unspecified Platform: Kubuntu Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: unassigned-b...@kde.org Reporter: chrisgu...@gmail.com Target Milestone: --- I am using kubuntu 21.10 at the moment, but I have experienced this since I first installed it, probably with 20.04. When I try to move/copy a file from any disk in my pc to a samba share the modified dates are not preserved. They seem to be copied for a moment but then immediately change to "now". The samba share is set on an RPi4. This is my /etc/samba/smb.conf file: [MyBook] path = /media/MyBook writeable = yes create mask = 0777 directory mask = 0777 public = yes browseable = yes guest ok = yes read only = no This is my fstab file to mount the share through cifs: //192.168.1.14/MyBook /media/MyBook cifs credentials=.smbcredentialsRPi4,iocharset=utf8,dir_mode=0777,file_mode=0777,x-systemd.automount,x-systemd.mount-timeout=30,_netdev 0 0 I am able to read/write the folders as expected, but when copying files the timestamps are not preserved. This is only happening to me from the kubuntu install. I also have a separate partition with ubuntu and ubuntu-mate, this does not happen when copying from there to the samba share. The weird part is that I used the exact same file in the three installations. When copying from my Windows partition, it also preserves the timestamps, so it seems to be a kubuntu-only issue and not how the samba share is set up on the RPi4. This also happens not only with Dolphin but with other file managers - I tried Nemo and Nautilus and they do not preserve the timestamps in my kubuntu setup. To show what happens, I copied a test file from a local disk to the samba share. The modified file on the original file is 10/03/2018, but the copied file's modified date is "now". Strangely enough, this does not happen when I use the samba address smb://192.168.1.14/MyBook/test/ as it does preserves the modified date. And if see the file from the mountpoint at /media/MyBook/test, it does show the correct modified date after it was copied. Drive attached to the RPi4 is formatted as EXT4. My guess is that it has something to do with how the mountpoint was created, or cifs itself. This is how the mountpoint looks with ls chris@operarum:~$ ls -l /media/ | grep MyBook drwxrwxrwx 2 chris chris 0 mar 31 22:32 MyBook This is the output from the RPi4: pinas@rpi4:~ $ ls -l /media | grep MyBook drwxrwxrwx 22 root root 4096 Mar 31 22:32 MyBook I also tried with using a root account to mount the cifs, but the results are the same. Not sure if it is a duplicate of bug #356651, but it is not fixed for me at least. -- You are receiving this mail because: You are watching all bug changes.