Samba tips and tricks

From HPCWIKI
Jump to navigation Jump to search

Wired file name on Window file explorer while correct file name on Linux

Window file explorer shows wired file name,

<G2X4IA~5
O2T3KH~K
SYJ2IT~R

It's a file name mangling problem(AKA Filename mangling) due to Samba is converting filenames down to old style DOS 8.3 filenames.

On server side, edit /etc/samba/smb.conf and add mangled names=no to the [global] section and restart the smb service.[1]

References

  1. Reference: http://oreilly.com/openbook/samba/book/ch05_04.html