unfortunately copying a directory from macOS to a Samba share fails, if
the macOS set ACLs in the source directory. The error on macOS side
basically informs the user, that the operation can’t be completed
because you don’t have permission to access some of the items.
Unfortunately macOS automatically sets these ACLs sometimes. Relevant
lines in my configuration file:
cat /usr/local/etc/smb4.conf
[global]
[...]
unix extensions = No
vfs objects = acl_xattr, streams_xattr, full_audit
[...]
[homes]
[...]
Solutions I've already attempted are:
- Connecting through CIFS rather then SMB
- Changing the permissions on said files to read/write by everyone
None of these attempts have managed to solve the problem I'm experiencing.
Using the xattr command I could see that the file had the
com.apple.TextEncoding attribute. I used the xattr -d command to delete
the attribute and I was then able to copy the file with the Finder.
I was in the opinion that "vfs objects = acl_xattr" should take care of
it. But why does it not?
Best regards,
Leander Schäfer
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Thanks
Am 05.10.16 um 15:28 schrieb Leander Schäfer via samba:
man vfs_fruit
Cheerio!
-slow
the solution was a combination of your suggestion and turning "veto
files" into "hide files":
[global]
[...]
#veto files = /~*/$*/Thumbs.db/desktop.ini/lost+found/
hide files = /~*/$*/Thumbs.db/desktop.ini/lost+found/
[...]
[homes]
[...]
vfs objects = catia fruit [...]
fruit:resource = file
fruit:metadata = netatalk
fruit:locking = netatalk
fruit:encoding = native
[...]
Thanks again for your useful help.
Best regards,
Leander Schäfer
Am 05.10.16 um 17:15 schrieb Ralph Böhme via samba: