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

Posted on 2012-09-17
Medium Priority
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

arober11 earned 2000 total points
ID: 38407775
Have a play with the NAME MANGLING directives:



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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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.
Suggested Courses
Course of the Month15 days, 19 hours left to enroll

850 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