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....

Samba: names displayed as uppercase 8.3 random characters

Postby peter_b » Sun Dec 18, 2016 9:27 pm

[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:
  • 0

User avatar
peter_b
Chatterbox
 
Posts: 302
Joined: Tue Nov 12, 2013 2:05 am
Reputation: 3

Ending with a dot.

Postby peter_b » Sun Dec 18, 2016 9:48 pm

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.
  • 0

User avatar
peter_b
Chatterbox
 
Posts: 302
Joined: Tue Nov 12, 2013 2:05 am
Reputation: 3

Re: Samba: names displayed as uppercase 8.3 random character

Postby gilthanaz » Mon Dec 19, 2016 3:39 pm

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

User avatar
gilthanaz
Site Admin
 
Posts: 443
Joined: Fri Aug 29, 2003 9:29 pm
Reputation: 0


Return to Knowledge Base

Who is online

Users browsing this forum: No registered users and 3 guests

Who is online over last 24 hours

Users browsed this forum in the last 24 hours: Google [Bot] and 6 guests

Reputation System ©'