I've got a Linux desktop from which I connect to my DNS 323 using 'mount -t cifs ...'. When I try to copy files to it using 'cp -a', where the -a flag preserves attributes of the file, I get an error:
cp: preserving times for `/path/to/file': Operation not permitted
On the DNS 323, the following is the 'ls -l' output for the original and the copied file, respectively:
-rw-rw-r--. 1 user user 244153018 Aug 11 16:11
-rwxrwxrwx. 1 502 502 244153018 Aug 12 12:15
I'd like them to be the same. I think '502' is the user from which I connect to the DNS 323 in my mount command - though I use the actual name of the user, e.g. 'myuser' rather than the id of 502 even though that is what appears. Do I need to mount the DNS 323 using the administrative user or do I need to change permissions or something?
What can I do to preserve as much information from the original file as possible when backing up to the DNS 323? Thanks.