A human-friendlier Samba name mangling
Posted
by
Alex
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Alex
Published on 2011-11-15T08:31:04Z
Indexed on
2011/11/15
10:15 UTC
Read the original article
Hit count: 360
samba
Most of our computers run Ubuntu, but two of them dual-boot into Windows, and when we have guests over, they typically also run Windows computers. Thus, in addition to using NFS, our file server (Ubuntu server) also runs Samba.
And since we use Ubuntu mostly, we like to take advantage of its advantages over Windows, such as being able to use the characters \:*?"<>|
in a file name. The problem, of course, is that Windows doesn't accept those characters in file names, and so Samba has to translate the file name into something more acceptable. The way it does this, however, I find to be obnoxious.
The file name Episode 182 - Exorcist 2: The Heretic.mp4
for instance turns into E4Q82R~Y.MP4
. This is a terrible "correction". Is there a way to make Samba's mangling a little more friendly to humans? Is possible to "correct" it to something like Episode 182 - Exorcist 2_ The Heretic.mp4
instead, where the illegal characters are simply substituted?
© Ask Ubuntu or respective owner