CIF/windows share not seen on network

Status
Not open for further replies.
Joined
Sep 21, 2014
Messages
3
Hi,

This is yet another thread seeking the wisdom of the community on creating CIF/windows shares.

Fresh install of FreeNas 9.2.1.7 on a server machine. I tried to setup CIF/windows shared volume by
- making a guest user
- creating a cif share
- starting the CIF service

I can't access the share on any machine on my network. I read the DOCs here and in Section 8.3.1 its says to use testparm /usr/local/etc/smb4.conf to troubleshoot

Code:
[root@freenas ~]# testparm |more                                                                                                   
Load smb config files from /usr/local/etc/smb4.conf                                                                                
max_open_files: increasing sysctl_max (11095) to minimum Windows limit (16384)                                                     
rlimit_max: increasing rlimit_max (11095) to minimum Windows limit (16384)                                                         
Processing section "[Granite]"                                                                                                     
Loaded services file OK.                                                                                                           
WARNING: lock directory /var/db/samba4 should have permissions 0755 for browsing to work                                           
WARNING: state directory /var/db/samba4 should have permissions 0755 for browsing to work                                          
WARNING: cache directory /var/db/samba4 should have permissions 0755 for browsing to work                                          
Server role: ROLE_STANDALONE                                                                                                       
Press enter to see a dump of your service definitions  


then enter produces


Code:
[global]                                                                                                                           
        dos charset = CP437                                                                                                        
        server string = FreeNAS Server                                                                                             
        server role = standalone server                                                                                            
        map to guest = Bad User                                                                                                    
        obey pam restrictions = Yes                                                                                                
        smb passwd file = /var/etc/private/smbpasswd                                                                               
        private dir = /var/etc/private                                                                                             
        guest account = guest                                                                                                      
        max log size = 51200                                                                                                       
        server max protocol = SMB2                                                                                                 
        time server = Yes                                                                                                          
        deadtime = 15                                                                                                              
        max open files = 11070                                                                                                     
        hostname lookups = Yes                                                                                                     
        load printers = No                                                                                                         
        printcap name = /dev/null                                                                                                  
        disable spoolss = Yes                                                                                                      
        dns proxy = No                                                                                                             
        pid directory = /var/run/samba                                                                                             
        panic action = /usr/local/libexec/samba/samba-backtrace                                                                    
        idmap config *:range = 90000000-100000000                                                                                  
        idmap config * : backend = tdb                                                                                             
        acl allow execute always = Yes                                                                                             
        create mask = 0666                                                                                                         
        directory mask = 0777                                                                                                      
        ea support = Yes                                                                                                           
        directory name cache size = 0                                                                                              
        kernel change notify = No                                                                                                  
        store dos attributes = Yes                                                                                                 
        strict locking = No                                                                                                        
                                                                                                                                   
[Granite]                                                                                                                          
        path = /mnt/granite                                                                                                        
        read only = No                                                                                                             
        guest only = Yes                                                                                                           
        guest ok = Yes                                                                                                             
        hide dot files = No                                                                                                        
        veto files = /.snap/.windows/.zfs/                                                                                         
        vfs objects = zfsacl, streams_xattr, aio_pthread                                                                           
        zfsacl:acesort = dontcare                                                                                                  
        nfs4:chown = yes                                                                                                           
        nfs4:acedup = merge                                                                                                        
        nfs4:mode = special                                                                                                        
        recycle:subdir_mode = 0700                                                                                                 
        recycle:directory_mode = 0777                                                                                              
        recycle:touch = yes                                                                                                        
        recycle:versions = yes                                                                                                     
        recycle:keeptree = yes
[global]                                                                                                                           
        dos charset = CP437                                                                                                        
        server string = FreeNAS Server                                                                                             
        server role = standalone server                                                                                            
        map to guest = Bad User                                                                                                    
        obey pam restrictions = Yes                                                                                                
        smb passwd file = /var/etc/private/smbpasswd                                                                               
        private dir = /var/etc/private                                                                                             
        guest account = guest                                                                                                      
        max log size = 51200                                                                                                       
        server max protocol = SMB2                                                                                                 
        time server = Yes                                                                                                          
        deadtime = 15                                                                                                              
        max open files = 11070                                                                                                     
        hostname lookups = Yes                                                                                                     
        load printers = No                                                                                                         
        printcap name = /dev/null                                                                                                  
        disable spoolss = Yes                                                                                                      
        dns proxy = No                                                                                                             
        pid directory = /var/run/samba                                                                                             
        panic action = /usr/local/libexec/samba/samba-backtrace                                                                    
        idmap config *:range = 90000000-100000000                                                                                  
        idmap config * : backend = tdb                                                                                             
        acl allow execute always = Yes                                                                                             
        create mask = 0666                                                                                                         
        directory mask = 0777                                                                                                      
        ea support = Yes                                                                                                           
        directory name cache size = 0                                                                                              
        kernel change notify = No                                                                                                  
        store dos attributes = Yes                                                                                                 
        strict locking = No                                                                                                        
                                                                                                                                   
[Granite]                                                                                                                          
        path = /mnt/granite                                                                                                        
        read only = No                                                                                                             
        guest only = Yes                                                                                                           
        guest ok = Yes                                                                                                             
        hide dot files = No                                                                                                        
        veto files = /.snap/.windows/.zfs/                                                                                         
        vfs objects = zfsacl, streams_xattr, aio_pthread                                                                           
        zfsacl:acesort = dontcare                                                                                                  
        nfs4:chown = yes                                                                                                           
        nfs4:acedup = merge                                                                                                        
        nfs4:mode = special                                                                                                        
        recycle:subdir_mode = 0700                                                                                                 
        recycle:directory_mode = 0777                                                                                              
        recycle:touch = yes                                                                                                        
        recycle:versions = yes                                                                                                     
        recycle:keeptree = yes               





Any ideas what to do next would be great. Thank you for the time to read my problem and any suggestions you can make to assist me.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Can you access the share if you manually type \\SERVER_NAME\ or \\SERVER_IP_ADDRESS\ in Windows Explorer?
 
Joined
Sep 21, 2014
Messages
3
Can you access the share if you manually type \\SERVER_NAME\ or \\SERVER_IP_ADDRESS\ in Windows Explorer?

I've tried and my win7 station says that it cannot find the server. I am using the same machine to administer the machine using the GUI. I have tried the IP and servername (server hostname).


You should have started the CIFS service before creating users and shares.

I reset the machine to factory default using the console menu at the machine. I then remade the system configs, network IP etc and then;
- started the CIF service
- mounted the zfs volume
- created the share using a guest user

Result is still the same. Cannot access shared volume on network.

I have removed the switch (unmanaged netgear 24 port) that was attached to the server to see it was perhaps the cause of the problem (I don't see why as I was still using the GUI just fine). I made a direct connection to the main switch. Again no difference in output.

Could this be a bug in 9.2.1.7 release? I read elsewhere that the system doesn't always create the required SMB file.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
The way you access the GUI is completely different than how you access a windows share. This isn't a bug, just use error. You need to fix your permissions. If you don't know how just make the share guest only and make the dataset windows acls and check the default acls box.
 
Joined
Sep 21, 2014
Messages
3
The way you access the GUI is completely different than how you access a windows share. This isn't a bug, just use error. You need to fix your permissions. If you don't know how just make the share guest only and make the dataset windows acls and check the default acls box.

Spot on. I had a rummage through the permissions and found that the main ZFS Volume was never set to "a windows" share. It has solved everything else, copying over gigs of data now.

Thanks for everyones help, much appreciated.

Note to self: Check permissions.
 
Status
Not open for further replies.
Top