CIFS name length causes server shares not to be browseable

Status
Not open for further replies.

aloisio mello

Dabbler
Joined
Jul 16, 2015
Messages
30
As per the manual:
-------------------------------------------------
Table 10.4a: Options for a CIFS Share

Setting Value Description
Path browse button select volume/dataset/directory to share
Use as home share checkbox check this box if the share is meant to hold user home directories; only one share can be the homes share
Name string mandatory; name of share
-------------------------------------------------

There is no limit to the CIF's name.

While troubleshooting one of my FNs not to be browseable from explorer, files, or dolphin; but able to mount from DOS command prompt, linux terminal, and fstab, run a testparm from the FN shell and got a warning that I had a CIF name with more than 12 characters and would be incompatible with old systems. All my desktops are: Windows 10, kubuntu 15.10, and CentOS 7 1511, so nothing old here.

When you start CIF service the terminal display SMB ready, etc, but no warning is displayed.

After changing the CIF name to something less than 12 characters, the server started to be browseable from all workstations.

That should be a easy fix if confirmed and duplicated by you guys:

- limit the length in the gui to x characters
- document in the manual the limit to avoid questions/confusion

I hope this helps. For more info please see my posts in Sharing and Network.

Regards!
 
D

dlavigne

Guest
Note that this forum is for discussing possible bugs before reporting them and that actual bugs should be reported to bugs.freenas.org.

Having said that, I've made a todo for myself to add this to the docs.
 

aloisio mello

Dabbler
Joined
Jul 16, 2015
Messages
30
My intention is to discuss the issue above and, if it is a bug to create a ticket, so please let me know if I'm off topic and I'll stop the train :)

There are two paths here:

1 - change the gui and documentation if above issue can be duplicated;
2 - Look into smb version (?) Maybe a no starter as could be fixed/upgraded with FN 10?

Any thing I can do to help, test, etc just let me know.
 
D

dlavigne

Guest
Can you confirm whether or not this is still an issue on 9.10? (it had a significant Samba version jump)
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
Nope, sorry, still trying to solve my DHCP problem and can't test it. At that time I've cut down the names to make it work. After I'm back up I can test it again.
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
Working so far:

Code:
[root@mellonas] ~# testparm
Load smb config files from /usr/local/etc/smb4.conf
Processing section "[andre]"
Processing section "[centcloud]"
Processing section "[gdrive]"
Processing section "[images]"
Processing section "[mello]"
Processing section "[mp3]"
Processing section "[repo]"
Processing section "[software]"
Processing section "[test]"
Processing section "[thisisaverylongnametomessupsamba]"
Processing section "[transcode]"
Processing section "[videos]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_STANDALONE


upload_2016-12-16_10-45-46.png
 
Status
Not open for further replies.
Top