Folder in sambas share with different case

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
nsp
Power Member
Power Member
Posts: 1919
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Folder in sambas share with different case

Post by *nsp »

I hve a samba share to a nas and mapped to a network drive (Y:\Folders\)
inside I have 3 folders with the same name having different case:
Folder
folder
FOLDER

In TC i see tree folders but when i go inside one of it, the content is not always displayed correctly as it can refers to the wrong one.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

There is a Samba configuration option to treat names in case sensitive or case insensitive way:
http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html
case sensitive = yes/no/auto

controls whether filenames are case sensitive. If they aren't, Samba must do a filename search and match on passed names. The default setting of auto allows clients that support case sensitive filenames (Linux CIFSVFS and smbclient 3.0.5 and above currently) to tell the Samba server on a per-packet basis that they wish to access the file system in a case-sensitive manner (to support UNIX case sensitive semantics). No Windows or DOS system supports case-sensitive filename so setting this option to auto is that same as setting it to no for them. Default auto.
However, there may still be problems because Windows is essentially case-insensitive. You may consider to create symbolic links named Folder1, Folder2 and Folder3 which point to the 3 folders, and then use these links to access the folders from Windows.
Author of Total Commander
https://www.ghisler.com
Post Reply