Linux – Mac sees mangled filenames from Linux SAMBA share

linuxmacosnetwork-sharessambasmb

Certain filenames in my SAMBA shares from Linux are not getting transmitted properly. It's certain files in certain folders and it doesn't affect all folders or all files within a single folder. I can find no discerning pattern to the mangling but hoping that this is a known problem. No amount of reboot, restart, etc. will fix this problem.

The filenames, when they get mangled, all end up in this form:

0JY4B3~H.M4V 
0MBS1O~M.M4V 
0NKDX9~R.M4V 
0O0ZTA~A.M4V

These are MPEG4 files. The extension remains intact.

Any ideas?

Best Answer

Those are short filenames, created by Samba's name mangling so that SMB clients that lack case sensitivity won't choke on them. See the NAME MANGLING section in the smb.conf(5) man page for more details. Most likely you have multiple filenames that vary only by case.

Related Question