I'm using XFCE spin with Thunar as the file manager. I've installed gvfs-smb and opened the firewall to allow samba client connections. Thunar now has a "Windows Network" item in "Network" section -- but whenever I try to open it, I get this error message:
Failed to open "Windows Network". Failed to retrieve share list from server.
Everything works fine if I access server name directly as smb://myserver - I can browse/modify files - but getting a list of servers is broken.
Is there a trick to getting this to run?
Thanks
Konstantin Svist wrote:
Everything works fine if I access server name directly as smb://myserver
- I can browse/modify files - but getting a list of servers is broken.
Is there a trick to getting this to run?
Have you changed your firewall to allow Samba Client traffic?
On 03/13/2012 01:43 PM, Michael Cronenworth wrote:
Konstantin Svist wrote:
Everything works fine if I access server name directly as smb://myserver
- I can browse/modify files - but getting a list of servers is broken.
Is there a trick to getting this to run?
Have you changed your firewall to allow Samba Client traffic?
Yup, as I said I can access the server by name as smb://myserver
Konstantin Svist on 03/13/2012 03:47 PM wrote:
Yup, as I said I can access the server by name as smb://myserver
That goes to show you how much of your email I really read. :P
In order to get a "list" there has to be a "Master Browser" I believe. Is "myserver" a Windows box or another Linux box running samba?
On 03/13/2012 01:50 PM, Michael Cronenworth wrote:
Konstantin Svist on 03/13/2012 03:47 PM wrote:
Yup, as I said I can access the server by name as smb://myserver
That goes to show you how much of your email I really read. :P
In order to get a "list" there has to be a "Master Browser" I believe. Is "myserver" a Windows box or another Linux box running samba?
Really? I thought the client simply makes a broadcast and all servers reply with what they have available... "myserver" is a linux box running samba, but connecting to a windows box works too, I believe.
Konstantin Svist wrote:
Really? I thought the client simply makes a broadcast and all servers reply with what they have available... "myserver" is a linux box running samba, but connecting to a windows box works too, I believe.
The way SMB networking works[1] is that one computer on the network declares itself the master browser. Other computers look for the MB and ask it for the list of computers on the network.
On your "myserver" running the samba server, do you have its firewall open for all the Samba ports (both server and client)?
[1] http://en.wikipedia.org/wiki/Network_Neighborhood (paragraph starting with "In a workgroup of...")
On 03/13/2012 02:08 PM, Michael Cronenworth wrote:
Konstantin Svist wrote:
Really? I thought the client simply makes a broadcast and all servers reply with what they have available... "myserver" is a linux box running samba, but connecting to a windows box works too, I believe.
The way SMB networking works[1] is that one computer on the network declares itself the master browser. Other computers look for the MB and ask it for the list of computers on the network.
On your "myserver" running the samba server, do you have its firewall open for all the Samba ports (both server and client)?
[1] http://en.wikipedia.org/wiki/Network_Neighborhood (paragraph starting with "In a workgroup of...")
Yes, I think all the right ports are open (/etc/sysconfig/iptables): # Samba [[[[ -A INPUT -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT -A INPUT -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT # ]]]]
Konstantin Svist wrote:
Yes, I think all the right ports are open (/etc/sysconfig/iptables):
Those are the right ports, but you also need a conntrack helper loaded.
$ lsmod | grep netbios nf_conntrack_netbios_ns 12665 0 ... etc
This is done in /etc/sysconfig/iptables-config, or by the system-config-firewall tool if you check the "Samba" box.
If the helper is already loaded then I'm not sure what else is wrong. You might ask on the Samba list.
On 03/14/2012 12:25 PM, Michael Cronenworth wrote:
Konstantin Svist wrote:
Yes, I think all the right ports are open (/etc/sysconfig/iptables):
Those are the right ports, but you also need a conntrack helper loaded.
$ lsmod | grep netbios nf_conntrack_netbios_ns 12665 0 ... etc
This is done in /etc/sysconfig/iptables-config, or by the system-config-firewall tool if you check the "Samba" box.
If the helper is already loaded then I'm not sure what else is wrong. You might ask on the Samba list.
Yes, I just checked and it's loaded
On Wed, 2012-03-14 at 11:58 -0700, Konstantin Svist wrote:
On 03/13/2012 02:08 PM, Michael Cronenworth wrote:
Konstantin Svist wrote:
Really? I thought the client simply makes a broadcast and all servers reply with what they have available... "myserver" is a linux box running samba, but connecting to a windows box works too, I believe.
The way SMB networking works[1] is that one computer on the network declares itself the master browser. Other computers look for the MB and ask it for the list of computers on the network.
On your "myserver" running the samba server, do you have its firewall open for all the Samba ports (both server and client)?
[1] http://en.wikipedia.org/wiki/Network_Neighborhood (paragraph starting with "In a workgroup of...")
Yes, I think all the right ports are open (/etc/sysconfig/iptables): # Samba [[[[ -A INPUT -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT -A INPUT -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT # ]]]]
--- # nmbd running? systemctl status nmb.service
# start it? systemctl start nmb.service
# start it at startup systemctl enable nmb.service
# CLI method to check connections... smbclient -L IP_ADDRESS_OF_SERVER -U $SOME_VALID_USER
ie...
# smbclient -L 192.168.2.5 -U craig Enter craig's password: Domain=[AZAPPLE] OS=[Unix] Server=[Samba 3.4.7]
Sharename Type Comment --------- ---- ------- netlogon Disk Network Logon Service print$ Disk Storage Disk Main File Storage Media Disk Media Storage CD Disk CD virtual drive Win 2K XP Disk Windows updates for 32 bit Linux Disk Linux Updates Macintosh Classic Disk Macintosh Classic OS Updates Macintosh OSX Disk Macintosh OSX Updates Music Disk Music Files Software Disk Installer Images Documents Disk My Documents Movies Disk Main File Storage IPC$ IPC IPC Service (Main File Server) craig Disk Home Directories Domain=[AZAPPLE] OS=[Unix] Server=[Samba 3.4.7]
Server Comment --------- ------- LIN-WORKSTATION Samba Server Version 3.6.3-78.fc16 SRV2 Main File Server
Workgroup Master --------- ------- AZAPPLE SRV2
Now if network browsing is happening, you can use NAME instead of IP_ADDRESS...
# smbclient -L SRV2 -U craig Enter craig's password: Domain=[AZAPPLE] OS=[Unix] Server=[Samba 3.4.7]
QED
Craig
On 03/14/2012 07:06 PM, Craig White wrote:
# nmbd running? systemctl status nmb.service
# start it? systemctl start nmb.service
# start it at startup systemctl enable nmb.service
# CLI method to check connections... smbclient -L IP_ADDRESS_OF_SERVER -U $SOME_VALID_USER
ie...
# smbclient -L 192.168.2.5 -U craig Enter craig's password: Domain=[AZAPPLE] OS=[Unix] Server=[Samba 3.4.7]
Sharename Type Comment --------- ---- ------- netlogon Disk Network Logon Service print$ Disk Storage Disk Main File Storage Media Disk Media Storage CD Disk CD virtual drive Win 2K XP Disk Windows updates for 32 bit Linux Disk Linux Updates Macintosh Classic Disk Macintosh Classic OS Updates Macintosh OSX Disk Macintosh OSX Updates Music Disk Music Files Software Disk Installer Images Documents Disk My Documents Movies Disk Main File Storage IPC$ IPC IPC Service (Main File Server) craig Disk Home DirectoriesDomain=[AZAPPLE] OS=[Unix] Server=[Samba 3.4.7]
Server Comment --------- ------- LIN-WORKSTATION Samba Server Version 3.6.3-78.fc16 SRV2 Main File Server Workgroup Master --------- ------- AZAPPLE SRV2Now if network browsing is happening, you can use NAME instead of IP_ADDRESS...
# smbclient -L SRV2 -U craig Enter craig's password: Domain=[AZAPPLE] OS=[Unix] Server=[Samba 3.4.7]
QED
Craig
nmb wasn't running, but it didn't change a thing. smbclient -L was working before, and works now -- it's smbtree that doesn't show anything (can't browse servers without knowing server names)