SAMBA server connection timeout in Dolphin

Can’t understand why in Win7 x86_64 (desktop PC) and WinXP SP3 x86 (desktop PC) my shared folders directly appears inside Network and in openSUSE 12.2.8 (my laptop) not.
I set up the Samba server on an old PC with Ubuntu Server 12.04.1 LTS x86.
All PCs use static IP and are connected at the same modem/router in which I disabled DHCP.
The problem appears when I navigate in Dolphin using Network->Samba Shares->MYWORKGROUP->server timeout
Instead, if I write smb://IPADDRESS/ in Dolphin’s navigation bar, I can get to my shares.

Did you install samba-winbind? :
Be sure that the smb, nmb and winbind services are enabled and properly running … :expressionless:

Sounds like either (or both) firewall or name resolve order, or the Samba daemons might be off.

Did you set up Samba? How? And what is openSUSE 12.2.8, I’m a bit confused?

Just installed winbind but problem remain; you mean having smb, nmb and winbind up and running into my openSUSE box? I use it simply as a Samba Client, no need to configure other shares.

I set up Samba only in my Ubuntu Server, nothing is configured in openSUSE: I totally disabled Firewall form YaST.
openSUSE 12.2.8 is the exact version I’ve found in YaST—> Release Note.

I would have a look at some examples I think. Look here:

Samba S.W.A.T. - Samba Web Administration Tool Setup for openSUSE - Blogs - openSUSE Forums

And for a bash script that does it all, have a look here:

SWAT - Samba Web Administration Tool - Setup & Creation Script - 1.04 - Blogs - openSUSE Forums

The smb.conf file, some services that need be running and your firewall setup ALL effect your ability to share between PC’s.

Thank You,

Well go to Yast → System → services runlevels → and turn on smb and nmb.

OK, the firewall’s off, so no need to configure it.

If it doesn’t start now after a reboot then post here the file smb.conf, which you can display with this command: cat /etc/samba/smb.conf (or kwrite cat /etc/samba/smb.conf)

Winbind is for domains, this is a workgroup, so no use for it.

On 10/19/2012 09:26 AM, susebh wrote:
>
<snip…/snip>
> openSUSE 12.2.8 is the exact version I’ve found in YaST—> Release
> Note.
>
>

Well I live and learn… I see it there, didn’t know that

Regards
swerdna

Nothing is working here… :’(

nmb.service - LSB: Samba NetBIOS naming service over IP
          Loaded: loaded (/etc/init.d/nmb)
          Active: active (running) since Fri, 19 Oct 2012 07:50:49 +0200; 5min ago
         Process: 609 ExecStart=/etc/init.d/nmb start (code=exited, status=0/SUCCESS)
          CGroup: name=systemd:/system/nmb.service
                  └ 893 /usr/sbin/nmbd -D -s /etc/samba/smb.conf ###However I have **no** smb.conf in openSUSE

smb.service - LSB: Samba SMB/CIFS file and print server
          Loaded: loaded (/etc/init.d/smb)
          Active: active (running) since Fri, 19 Oct 2012 07:50:50 +0200; 5min ago
         Process: 894 ExecStart=/etc/init.d/smb start (code=exited, status=0/SUCCESS)
          CGroup: name=systemd:/system/smb.service
                  ├ 910 /usr/sbin/smbd -D -s /etc/samba/smb.conf ###However I have **no** smb.conf in openSUSE
                  └ 914 /usr/sbin/smbd -D -s /etc/samba/smb.conf ###However I have **no** smb.conf in openSUSE


smb.conf

[global]
        workgroup = universe
        netbios name = sus
        server string = SambaUbuntuServer %v
        security = user
        smb passwd file = /etc/samba/smbpasswd
        encrypt passwords = yes
        map to guest = bad user
        username map = /etc/samba/smbusers
        guest account = nobody

[Share01]
        comment = 01
        path = /home/user/01/
        writable = no
        guest ok = yes
        browsable = yes

[Share02]
        comment = 02
        path = /home/user/02/
        writable = no
        guest ok = yes
        browsable = yes

[Share03]
        comment = 03
        path = /home/user/03/
        writeable = no
        guest ok = yes
        browsable = yes

smbusers

nobody = guest

Have a go with this [global] stanza:

[global]
        workgroup = universe
        netbios name = sus
        server string = SuseServer %v
#        security = user
#        smb passwd file = /etc/samba/smbpasswd
#        encrypt passwords = yes
        map to guest = bad user
#        username map = /etc/samba/smbusers
#        guest account = nobody
name resolve order = bcast host lmhosts wins
local master = yes
preferred master = auto
os level = 64

And for each of those shares I’d be inclined to add the line:
force user =billybob
(where you use the real username for billybob)

You can also get interference from Ubuntu if it’s present and running as a wins server, which for some strange reason happens fairly often.

You might like to look at this burst on win7 since you are using it in the LAN:
Setup Windows 7 to Share Resources on an openSUSE Samba Network

Ehm… How can I check that?

By the way no success at all :’(
In Win7 and WinXP I still see the shares with no trouble and the Samba server automatically appears with its hostname in “Network”.
Conversely, openSUSE still needs IPADDRESS.

Why did you make me change server string = SambaUbuntuServer %v into server string = SuseServer %v? The server - which is running Samba - is Ubuntu.

I misread the info you posted. Ubuntu is not set up as a wins server, my mistake.
You should change the server string back to what you had and the line “preferred master = auto” to “preferred master = yes” in Ubuntu.

Are you absolutely sure there is no smb.conf in openSUSE? Look in the directory /etc/samba. If your answer is “no it’s not there”, then run this command to check the software is all installed: rpm -qa | grep samba
e.g. I get this:

john@opensuse122:~> rpm -qa | grep samba
yast2-samba-client-2.22.2-2.1.2.noarch
samba-client-32bit-3.6.7-48.12.1.x86_64
samba-client-3.6.7-48.12.1.x86_64
yast2-samba-server-2.22.3-2.1.1.noarch
samba-3.6.7-48.12.1.x86_64

And also run this command: ls -l /etc/samba

But if your answer is “yes I found it” then post the contents here

Dolphin still get timeout error with “preferred master = yes” in Ubuntu.
/etc/samba/smb,conf exists, but… It’s empty!


# rpm -qa | grep samba && ls -l /etc/samba/ && cat /etc/samba/smb.conf
samba-winbind-32bit-3.6.7-48.12.1.x86_64
yast2-samba-client-2.22.2-2.1.2.noarch
samba-client-3.6.7-48.12.1.x86_64
samba-3.6.7-48.12.1.x86_64
samba-winbind-3.6.7-48.12.1.x86_64
samba-32bit-3.6.7-48.12.1.x86_64
samba-doc-3.6.7-48.12.1.noarch
samba-client-32bit-3.6.7-48.12.1.x86_64
samba-krb-printing-3.6.7-48.12.1.x86_64
yast2-samba-server-2.22.3-2.1.1.noarch
totale 832                                                                                                                                                                          
-rw------- 1 root root 421888 19 ott 01.28 passdb.tdb                                                                                                                               
-rw------- 1 root root 430080 19 ott 01.28 secrets.tdb                                                                                                                              
-rw-r--r-- 1 root root      0 18 ott 11.31 smb.conf

Looks good.

Put some contents in smb.conf, these will do:

[global]
 workgroup = universe
 netbios name = suseclient
 server string = ""
 map to guest = bad user
 name resolve order = bcast host lmhosts wins
 local master = yes
 preferred master = auto
 os level = 32

You can change “suseclient” to anything reasonable that you like.
Then restart all machines consecutively, waiting for the last to finish booting before starting the next.

I would make sure that winbind is not running, just a complication.

make sure your firewall is really off (run this: su -c ‘rcSuSEfirewall2 status’)

On 10/19/2012 7:16 PM, swerdna wrote:
>
> susebh;2497249 Wrote:
>> Dolphin still get timeout error with -“preferred master = yes”- in
>> Ubuntu.
>> /etc/samba/smb,conf exists, but… It’s empty!
>>>
> Code:
> --------------------

<snip>
> --------------------
>>>
>
> Looks good.
>
> Put some contents in smb.conf, these will do:
>
>
> Code:
> --------------------
> [global]
> workgroup = universe
> netbios name = suseclient
> server string = “”
> map to guest = bad user
> name resolve order = bcast host lmhosts wins
> local master = yes
> preferred master = auto
> os level = 32
> --------------------
>
> You can change “suseclient” to anything reasonable that you like.
> Then restart all machines consecutively, waiting for the last to finish
> booting before starting the next.
>
> I would make sure that winbind is not running, just a complication.
>
> make sure your firewall is really off (run this: su -c ‘rcSuSEfirewall2
> status’)
>
>
susebh;
As browsing works fine using IP your problem should not lie in the firewall. This is
surely a name resolution problem. Setting /etc/samba/smb.conf as suggested by swerdna
should solve your problem. Once you have name resolution working you can open the smb
ports in the firewall using YaST and turn the firewall on.

To answer an earlier question; you can check if Ubuntu (or OpenSuse ) is acting as a wins
server by looking at the smb.conf file. it contains the parameter:


wins support = yes
Then it is a wins server. The default is no.   It looks like Ubuntu is not a wins server.
It is best to leave the wins support parameter at the  default value.
--
P.V.
"We're all in this together, I'm pulling for you" Red Green

On 10/19/2012 11:43 PM, PV wrote:
<snip>
>


> wins support = yes
<snip>

Should read:

wins support = yes


--
P.V.
"We're all in this together, I'm pulling for you" Red Green

Finally it works! I can also see Windows shares! :slight_smile: Fiuuu…
Winbind isn’t active and firewall is unused.
Just too sum up this “mess”, what are the needed steps to follow to fix my problem? Could be useful if the solution will be presented in the 1st post of this thread.

P. S.: why can I access to a Windows share giving credential of the Windows user, but that user is not in the list of samba user??? :sarcastic:

Gotcha, thanks!

On 10/20/2012 10:26 PM, susebh wrote:
>
> Finally it works! I can also see Windows shares! :slight_smile: Fiuuu…
> Winbind isn’t active and firewall is unused.
> Just too sum up this “mess”, what are the needed steps to follow to fix
> my problem? Could be useful if the solution will be presented in the 1st
> post of this thread.

Write a solution into the first post? It was not until about the tenth
post that the environment and the problem were actually revealed and a
solution could be attempted. So a reader would see a first post and a
solution that did not relate well. No, this story unfolds very slowly :slight_smile:

>
> P. S.: why can I access to a Windows share giving credential of the
> Windows user, but_that_user_isnot_in_the_listof_samba_user???
> :sarcastic:
>
>

The Samba user database is used to allow/disallow incoming connections
to shares that have been configured to require authenticated access.
That database has no role in connecting outwards from the suse box.


Regards
swerdna