Sometimes in Finder on Mac OSX users cannot see some files.
Which files are not visible seems random.
It doesn't depend on the version of Mac OSX, and doesn't depend on the version of SMB. I have Samba 4.17.12 server which is part of Debian 12. The same problem occurs with Debian 11, or with different versions of Samba.
It has been occurring about five years.
It is not caused by permissions. Files in folder can have exactly same permissions, sometimes almost same names (differs only in one ASCII character for example), but in Finder users can see only some of them.
Users reported - these invisible files are sometimes visible in Finder for very short time, less than one second, then the files disappear.
Is it a bug in Finder?
Sometimes helped remove all characters with diacritics from filenames and leave only basic ASCII.
Sometimes helped do some minor change in file (for example add empty line in word document) and it magically appeared in Finder again.
Never helped move invisible file in other folder, it always stayed invisible.
I tried many changes in smb.conf without success. It always works with Windows 7, 8, 10, 11 or with smbclients on Linux.
I tried removing .DS_Store and other ._ metadata from Mac, never helped.
I tried reloading Finder on Mac OSX, reboot Mac... never helped
In logfile I can see Mac is accessing all files, even files invisible in Finder. I didn't find any relevant message in log file.
Macs and Windows are using both protocol SMB 3.11 and encryption AES-128-GCM, there is no difference.
# SIMPLIFIED CONFIG [global] netbios name = xxxx netbios aliases = xxxx.localnet server string = xxxx os level = 99 time server = yes server signing = mandatory smb encrypt = mandatory dos charset = CP852 unix charset = UTF-8 security = user local master = yes preferred master = yes wins support = yes admin users = administrator domain master = yes min protocol = SMB2 idmap config * : backend = tdb idmap config * : range = 3000-7999 vfs object = recycle dns proxy = no mangled names = no access based share enum = true [sharename] comment = share comment path = /home/someshare browseable = yes create mask = 0660 directory mask = 0770 force create mode = 0660 force directory mode = 0770 force group = users read only = yes valid users = username1 write list = username1 Do you have an idea what to check?
I don't know if it is bug on Mac or Samba. I suspect it is Mac problem, but I have no idea how to confirm.