Page 1 of 1

Problems with samba client

PostPosted: Jun 21st, '11, 13:20
by pomotron
I have a small network with shared folders and I can't get Mageia to recognize it.
When I go to Dolphin - Samba shares, it says that there are no workgroups available, when I try the shared Windows folders in Control Center, it doesn't show a thing. I can work with the network out of the box in all the other distros I tried, even in Mandriva 2010.2. The curious thing is, that when I let Mandriva to update all the packages, it also stops working with the network, but Dolphin shows a different error message than in Mageia, so these things might not be related.
Any suggestions on what might be causing the problem?

Re: Problems with samba client

PostPosted: Jun 24th, '11, 22:33
by pomotron
Would someone at least confirm that shared folders work out of the box, please?

Re: Problems with samba client

PostPosted: Jun 24th, '11, 22:44
by isadora
Just interested:
what is the workgroups' name?

Re: Problems with samba client

PostPosted: Jun 24th, '11, 23:19
by isadora
Also, found after some Googling around:

On the Linux side:

- It may be worth double-checking the lmhosts file (contents,permissions etc.), and perhaps rearranging this line to try different resolution types:

name resolve order=lmhosts wins bcast host


- WINS registration and broadcasts only happen every somewhat minutes and it can take several intervals for browse lists to work fully.

Re: Problems with samba client

PostPosted: Jul 29th, '11, 04:42
by surfaceunits
I had to disable the firewall to get it to work as there is no SMB client check box in the firewall panel

Re: Problems with samba client

PostPosted: Jul 29th, '11, 20:02
by surfaceunits
OK you need to use the Advanced tab in the firewall to add -> 139/tcp 139/udp 600:610/tcp 600:610/udp
and then you will get the Windows File Sharing (SMB) checkbox

Re: Problems with samba client

PostPosted: Aug 28th, '11, 13:25
by pomotron
Unfortunately, it doesn't work even with the disabled firewall.

The workgroup's name is DOMA, which is the default name for home workgroups in Czech version of Windows.

Well, I opened /etc/samba/lmhosts and all that I found there was this single line:
Code: Select all
127.0.0.1 localhost

How much stuff is supposed to be there?

Re: Problems with samba client

PostPosted: Aug 29th, '11, 11:42
by doktor5000
What is the output of
Code: Select all
smbclient -L //servername

Re: Problems with samba client

PostPosted: Sep 13th, '11, 11:20
by neildarlow
Hi,

My network is a little different to yours in that I have a Samba PDC but I experienced the same problem as you in not being able to browse shares with Dolphin.

As part of my network integration, I configured my Mageia system as a Domain Member Server (by installing and configuring samba-server) and after this I was able to browse my network shares.

You might try running a local samba-server as it could be that Dolphin interacts with it to perform browsing. By installing samba-server I also found it was only necessary to select the SMB checkbox in the Personal Firewall Settings, there was no need to open additional ports.

Regards,
Neil Darlow

Re: Problems with samba client

PostPosted: May 24th, '12, 21:55
by pomotron
Well, here I am again, after almost a year spent on distro-hopping...

The problem persists even in Mageia 2, unfortunately.

doktor5000 wrote:What is the output of
Code: Select all
smbclient -L //servername

This:
Code: Select all
[lpm@localhost ~]$ smbclient -L //CML2
Enter lpm's password:
Domain=[CML2] OS=[Windows 7 Professional 7601 Service Pack 1] Server=[Windows 7 Professional 6.1]

        Sharename       Type      Comment
        ---------       ----      -------
        ADMIN$          Disk      Vzdálený správce
        C$              Disk      Výchozí sdílená položka
        D$              Disk      Výchozí sdílená položka
        IPC$            IPC       Vzdálený IPC
        Users           Disk     
Domain=[CML2] OS=[Windows 7 Professional 7601 Service Pack 1] Server=[Windows 7 Professional 6.1]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------

I can also see a shared Windows printer, therefore samba-client does work in a way.


On a side note, it seems to me that perhaps all of the Mandriva-related distros suffer from similar samba-weakness (at least Mandriva, Mageia, PClinuxOS and Unity do). I don't recall seeing the "shared samba folders access" in Control Center ever yield any useful result in any of the distros (it shows the localhost at most, when the local samba-server is running), and Dolphin also doesn't show workgroups most of the time (I never achieved a consistent result in Mandriva and PClinuxOS, perhaps other computers on the network have some influence? In any case, it never worked in Mageia). What bugs me is that all Debian-based distros yield much better results in this area - accessing shared folders on the Windows computer works most of the time. Sometimes the computer or the whole workgroup disappears as well, however.