Why do my Linux Samba share show underscores in file names when viewed on a Samba client?

Submitted by gunnar on
Question

When a Samba client, Windows or Linux doesn't matter, connect to any of my shared directories all national characters in file and directory names are shown as underscores. Why?

Answer

Probably the directory character encoding used on your server doesn't match the setting unix charset in the [global] section of /etc/samba/smb.conf. If you don't use UTF-8 you need to specify the character encoding with this setting.