I use two Macs to connect to my SMB shares. On both machines I experience problem with grayed out/inaccessible files on shares. When I copy a file to share via Finder it immediately becomes inaccessible to execute or rename. But I still can remove it.
I checked samba log and found this:
smbd: [2020/07/05 10:16:47.342573, 0] ../source3/modules/vfs_fruit.c:4252(fruit_pread_meta_stream)
smbd: fruit_pread_meta_stream: Removing [<filenam>:AFP_AfpInfo] after short read 
smbd: [2020/07/05 10:16:47.342646, 0] ../source3/modules/vfs_fruit.c:4256(fruit_pread_meta_stream)
smbd: fruit_pread_meta_stream: Removing [<filenam>:AFP_AfpInfo] failed
smbd: [2020/07/05 10:16:47.428065, 0] ../source3/modules/vfs_recycle.c:424(recycle_do_touch)
smbd: recycle: stat for <path-to-recycle>///<filenam>:AFP_AfpInfo returned No such file or directory
smbd: [2020/07/05 10:16:52.576100, 0] ../source3/modules/vfs_fruit.c:3807(fruit_rename)
smbd: fruit_rename: Need valid stat for [<filenam>:AFP_AfpInfo:$DATA]
For a testing purposes I installed fresh debian 10 with just samba without OMV (before I used OMV 5), so my smb.conf is:
logging = syslog
vfs objects = recycle catia fruit streams_xattr
read only = no
fruit:metadata = stream
fruit:veto_appledouble = no
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:delete_empty_adfiles = yes
recycle:repository = /srv/.recycle/%S
recycle:keeptree = yes
recycle:versions = yes
recycle:touch = yes
recycle:touch_mtime = no
map to guest = Bad User
path = /srv/Archive
guest ok = yes
Files become accessible only after deleting external attribute via: setfattr -x user.DosStream.AFP_AfpInfo:\$DATA <filename>
And for some weird reason I didn't see any "._*" files in my share directory or .recycle. But before they were always there.
Usually I don't write forum posts about my tech problems and I solve them by myself, but this time I haven't found anything helpful in the whole Internet about this particular situation.
Yeah, there is not so many users with Macs, but if you're are one of those, just check your samba log if there is any similar messages in there.