Problems with samba client

Problems with samba client

Postby pomotron » Jun 21st, '11, 13:20

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?
pomotron
 
Posts: 6
Joined: Jun 4th, '11, 11:37

Re: Problems with samba client

Postby pomotron » Jun 24th, '11, 22:33

Would someone at least confirm that shared folders work out of the box, please?
pomotron
 
Posts: 6
Joined: Jun 4th, '11, 11:37

Re: Problems with samba client

Postby isadora » Jun 24th, '11, 22:44

Just interested:
what is the workgroups' name?
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2764
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: Problems with samba client

Postby isadora » Jun 24th, '11, 23:19

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.
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2764
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: Problems with samba client

Postby surfaceunits » Jul 29th, '11, 04:42

I had to disable the firewall to get it to work as there is no SMB client check box in the firewall panel
surfaceunits
 
Posts: 5
Joined: Jul 29th, '11, 03:41

Re: Problems with samba client

Postby surfaceunits » Jul 29th, '11, 20:02

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
surfaceunits
 
Posts: 5
Joined: Jul 29th, '11, 03:41

Re: Problems with samba client

Postby pomotron » Aug 28th, '11, 13:25

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?
pomotron
 
Posts: 6
Joined: Jun 4th, '11, 11:37

Re: Problems with samba client

Postby doktor5000 » Aug 29th, '11, 11:42

What is the output of
Code: Select all
smbclient -L //servername
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18042
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Problems with samba client

Postby neildarlow » Sep 13th, '11, 11:20

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
EeePC 900, 900MHz Celeron-M CPU, 1GB RAM, 12GB SSD, Intel 915GM video, kernel-netbook, KDE
User avatar
neildarlow
 
Posts: 3
Joined: Aug 7th, '11, 11:56
Location: Bedfordshire, United Kingdom

Re: Problems with samba client

Postby pomotron » May 24th, '12, 21:55

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.
pomotron
 
Posts: 6
Joined: Jun 4th, '11, 11:37


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest

cron