Linux/Samba: How to show shares in the correct case

Posted on 2012-09-17
Last Modified: 2012-10-23
Here's a tricky one:

I've defined a share in smb.conf:


	comment = /THESHARE
	inherit acls = Yes
	path = /THESHARE
	read only = No
	valid users = theuser


Open in new window

If I access that share from a windows machine (Win7 or XP to be precise, don't know the behaviour of other Win's), with explorer, the share's name is shown in lower case as theshare. This is irritating some users.

Furthermore, when accessing the root via Samba, the case of /THESHARE is shown correct in upper case.

The question: Is there a way to force samba (or Windows ???) to present the shares with the correct case ?
Question by:frankhelk
    1 Comment
    LVL 26

    Accepted Solution

    Have a play with the NAME MANGLING directives:


    case sensitive = No
    preserve case      = Yes
    default case = upper

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now