Red Hat Bugzilla – Bug 106880
Valid Unix directory names create invalid samba share names
Last modified: 2007-04-18 12:58:19 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030702
Description of problem:
Since the Samba config tool names the share after the last component of the
directory, valid Unix directory names such as "/var/samba share" will create
invalid * Samba share names such as [samba share].
* Actually, I'm not entirely sure these names are invalid. AFAIK spaces are out
for share names, but Samba 3's testparm utility doesn't complain about them. I
have a feeling that that's a bug in testparm, but its worth making sure...
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Share out a directory with a space in its name
Actual Results: An invalid share name is created
Expected Results: I like the way the tool automatically gets the share name
from the directory, I think it should just strip invalid share characters like
spaces (and maybe compress long names) - so [sambashare] would be created
instead of [samba share].
I also think giving people the option to change the share name manually would be
Ah, I see. I now replace whitespce with underscores in the section headers in
the config file. Should be fixed in redhat-config-samba-1.1.3-1. Thanks for