Samba: names displayed as uppercase 8.3 random characters

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
peter_b
Chatterbox
Posts: 380
Joined: Tue Nov 12, 2013 2:05 am

Samba: names displayed as uppercase 8.3 random characters

Post by peter_b »

[PROBLEM]
I was accessing files over a Samba share (Debian 8 (Jessie) as server), when some filenames were not the way they were when watching them on the server (using "ls"), but random uppercase letters in legacy "MS-DOS 8.3 notation".

For example:
"01 - author : title.txt" becomes "0HPENP~T.TXT"

Very confusing.

[SOLUTION]
The reason was that the filenames contained characters that unixoid filesystems (ext, zfs, etc) can handle, but Windows can't.
Therefore, Samba "cleaned" these filenames - but not in a very sensible way :(

That's a reason why I am very very picky about clean filenames! :evil:

Here's something that you can use to clean your filenames before trouble happens:
http://detox.sourceforge.net/


Links:
User avatar
peter_b
Chatterbox
Posts: 380
Joined: Tue Nov 12, 2013 2:05 am

Ending with a dot.

Post by peter_b »

It also seems to affect folders that "end with a dot" in the name.

For example, the folder "x.x" works fine, but "x.x." is translated to "XGI9XM~D"
Didn't expect this to be problem at all.
gilthanaz
Site Admin
Posts: 444
Joined: Fri Aug 29, 2003 9:29 pm
Contact:

Re: Samba: names displayed as uppercase 8.3 random character

Post by gilthanaz »

WTF I've never seen this happen in a decade of using samba O.o
Post Reply