Samba: workgroup is not visible in Dolphin, though accessible directly

Hi, I’m new to linux and currently trying different distros in VMWare Workstation 9 under Windows 7x64.
So far I liked openSuse the most, though there’s one thing I can’t resolve:
openSuse 12.2 x32 Kde
I’ve installed Samba and when I click Network and then Samba Shares in Dolphin nothing is listed and in the status bar I see the progress bar “Loading folder”, which eventually times out (I presume) and stops. If in Dolphin address bar I type smb://workgroup, I see the same in the status bar for a while, but then I can see both linux and windows names listed. If I type smb://MyWinName I’m asked for login immediately and can access windows filesystem with no problem.
When I tried Linux Mint it already had Samba installed and everything worked flawlessly: I could see workgroup listed. I tried Mint’s smb.conf, but it didn’t help.
I’ve disabled firewall and made sure smb and nmb are enabled. Restarting them manually doesn’t help. This is my smb.conf:


[global]
        workgroup = Workgroup
        server string = Samba
#       security = DOMAIN
        map to guest = Bad User
        passdb backend = smbpasswd
#       add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
#       logon path = \\%L\profiles\.msprofile
#       logon drive = P:
#       logon home = \\%L\%U\.9xprofile
        domain master = No
        usershare allow guests = Yes
        usershare max shares = 100
        printcap name = cups
        cups options = raw
        use client driver = yes
#       wins support = No
#       wins server = 
        name resolve order = bcast host lmhosts wins
        local master = yes
        preferred master = yes
        os level = 33


[homes]
        comment = Home Directories
        valid users = %S, %D%w%S
        read only = No
        inherit acls = Yes
        browseable = No                                                                                               
                                                                                                                      
[profiles]                                                                                                            
        comment = Network Profiles Service                                                                            
        path = %H                                                                                                     
        read only = No
        create mask = 0600
        directory mask = 0700
        store dos attributes = Yes

[users]
        comment = All users
        path = /home
        read only = No
        inherit acls = Yes
        veto files = /aquota.user/groups/shares/

[groups]
        comment = All groups
        path = /home/groups
        read only = No
        inherit acls = Yes

[printers]
        comment = All Printers
        path = /var/tmp
        create mask = 0600
        printable = Yes
        print ok = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @ntadmin, root
        force group = ntadmin
        create mask = 0664
        directory mask = 0775

saw these diagnostic commands in another thread:

less /var/log/messages | grep samba


Nov  9 19:16:01 SuseKde smbd[14744]:   startsmbfilepwent_internal: file /etc/samba/smbpasswd did not exist. File successfully created.
Nov  9 20:46:48 SuseKde sudo:     root : TTY=pts/0 ; PWD=/etc/samba ; USER=root ; COMMAND=/usr/sbin/rcnmb restart
Nov  9 20:53:14 SuseKde sudo:     root : TTY=pts/0 ; PWD=/etc/samba ; USER=root ; COMMAND=/usr/sbin/rcnmb restart
Nov  9 20:53:16 SuseKde sudo:     root : TTY=pts/0 ; PWD=/etc/samba ; USER=root ; COMMAND=/usr/sbin/rcsmb restart
Nov  9 20:56:23 SuseKde sudo:     root : TTY=pts/0 ; PWD=/etc/samba ; USER=root ; COMMAND=/usr/sbin/rcsmb restart

cat /var/log/samba/log.nmbd


  *****
[2012/11/09 23:06:57,  0] nmbd/nmbd.c:66(terminate)
  Got SIGTERM: going down...
[2012/11/09 23:48:43,  0] nmbd/nmbd.c:861(main)
  nmbd version 3.6.7-48.12.1-2831-SUSE-SL12.2-i386 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2012/11/09 23:49:07,  0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
  *****
  
  Samba name server SUSEKDE is now a local master browser for workgroup WORKGROUP on subnet 192.168.152.138
  
  *****
[2012/11/10 00:05:29,  0] nmbd/nmbd.c:66(terminate)
  Got SIGTERM: going down...
[2012/11/10 00:06:40,  0] nmbd/nmbd.c:861(main)
  nmbd version 3.6.7-48.12.1-2831-SUSE-SL12.2-i386 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2012/11/10 00:07:04,  0] nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
  *****
  
  Samba name server SUSEKDE is now a local master browser for workgroup WORKGROUP on subnet 192.168.152.138
  
  *****

cat /var/log/samba/log.smbd


[2012/11/09 23:02:34,  0] smbd/server.c:1053(main)
  smbd version 3.6.7-48.12.1-2831-SUSE-SL12.2-i386 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2012/11/09 23:48:44,  0] smbd/server.c:1053(main)
  smbd version 3.6.7-48.12.1-2831-SUSE-SL12.2-i386 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2012/11/10 00:02:14,  0] smbd/server.c:1053(main)
  smbd version 3.6.7-48.12.1-2831-SUSE-SL12.2-i386 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2012/11/10 00:06:41,  0] smbd/server.c:1053(main)
  smbd version 3.6.7-48.12.1-2831-SUSE-SL12.2-i386 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011

Any ideas?

pdbedit -L


master:1000:Master

tdbdump passdb.tdb | grep USER


key(12) = "USER_master\00"
key(10) = "USER_root\00"

master is my current username
BTW, what’s the difference between these 2 sets of users?

Looks like all is working except maybe Dolphin, strange.

What does this yield: smbtree -N

Dolphin is fine, because when I had both Mint and Suse VMs powered, I could see workgroup ok in Suse’s dolphin (it was before I reconfigured Suse’s Samba from its defaults).

The command you suggested doesn’t yield anything. When I hit enter it waits maybe half a minute before command prompt is shown again, but nothing is printed out (yes, I’m su’ed). So feels like some kind of a timeout.

You said you did various things, and I’m sure you did, but did they stick? Try these diagnostics (as root ie su first), somewhat comprehensive:

service nmb status; service smb status
rcSuSEfirewall2 status
cat /etc/sysconfig/SuSEfirewall2 | grep FW_CONFIGURATIONS_EXT=
rpm -qa | grep samba
testparm

And from the windows side, can you ping the IP of the Suse VM, and from the VM side, can you ing the IP of the windows machine.

Pinging 192.168.152.138 with 32 bytes of data:
Reply from 192.168.152.138: bytes=32 time<1ms TTL=64
Reply from 192.168.152.138: bytes=32 time<1ms TTL=64
Reply from 192.168.152.138: bytes=32 time<1ms TTL=64
Reply from 192.168.152.138: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.152.138:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

SuseKde:~ # service nmb status; service smb status
Checking for Samba NMB daemon                                                                           running
Checking for Samba SMB daemon                                                                           running
SuseKde:~ # rcSuSEfirewall2 status
Checking the status of SuSEfirewall2                                                                    unused
SuseKde:~ # cat /etc/sysconfig/SuSEfirewall2 | grep FW_CONFIGURATIONS_EXT=
FW_CONFIGURATIONS_EXT=""
SuseKde:~ # rpm -qa | grep samba
samba-client-3.6.7-48.12.1.i586
yast2-samba-server-2.22.3-2.1.1.noarch
yast2-samba-client-2.22.2-2.1.2.noarch
samba-3.6.7-48.12.1.i586
SuseKde:~ # testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[profiles]"
Processing section "[users]"
Processing section "[groups]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
        server string = Samba
        map to guest = Bad User
        passdb backend = smbpasswd
        name resolve order = bcast host lmhosts wins
        printcap name = cups
        os level = 33
        preferred master = Yes
        domain master = No
        usershare allow guests = Yes
        usershare max shares = 100
        idmap config * : backend = tdb
        cups options = raw
        use client driver = Yes

[homes]
        comment = Home Directories
        valid users = %S, %D%w%S
        read only = No
        inherit acls = Yes
        browseable = No

[profiles]
        comment = Network Profiles Service
        path = %H
        read only = No
        create mask = 0600
        directory mask = 0700
        store dos attributes = Yes

[users]
        comment = All users
        path = /home
        read only = No
        inherit acls = Yes
        veto files = /aquota.user/groups/shares/

[groups]
        comment = All groups
        path = /home/groups
        read only = No
        inherit acls = Yes

[printers]
        comment = All Printers
        path = /var/tmp
        create mask = 0600
        printable = Yes
        print ok = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @ntadmin, root
        force group = ntadmin
        create mask = 0664
        directory mask = 0775
SuseKde:~ # ping 192.168.1.100
PING 192.168.1.100 (192.168.1.100) 56(84) bytes of data.
64 bytes from 192.168.1.100: icmp_seq=1 ttl=128 time=1.00 ms
64 bytes from 192.168.1.100: icmp_seq=2 ttl=128 time=0.953 ms
64 bytes from 192.168.1.100: icmp_seq=3 ttl=128 time=0.702 ms
64 bytes from 192.168.1.100: icmp_seq=4 ttl=128 time=0.567 ms
^C
--- 192.168.1.100 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 0.567/0.806/1.004/0.181 ms
SuseKde:~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:EB:86:6A  
          inet addr:192.168.152.138  Bcast:192.168.152.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:feeb:866a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2815 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2651 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2190623 (2.0 Mb)  TX bytes:389063 (379.9 Kb)
          Interrupt:19 Base address:0x2024 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:151 errors:0 dropped:0 overruns:0 frame:0
          TX packets:151 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:12436 (12.1 Kb)  TX bytes:12436 (12.1 Kb)

For some reason testparm omits workgroup entry, while it’s still there:

SuseKde:~ # cat /etc/samba/smb.conf | grep workgroup
        workgroup = Workgroup

Is it supposed to be this way?

Is it supposed to be this way?
Testparm omits workgroup if it is the default (which is indeed workgroup). So that’s OK.

I can’t see anything wrong at all. I would have in [global] the line “netbios name = etcetcetc” but I think that’s not relevant to your problem.

The only strange thing I see is that openSUSE is a VM in windows, which I’ve never used myself, and so I have no experience there. Buy try turning off the windows and the proprietary firewall (if any) just for interest.

What did you mean try turning off windows? It’s my host OS :slight_smile:
Firewall in Windows must be irrelevant, because Samba in Mint VM works fine.

Thanks for your efforts anyway.

Ok, all it takes to fix is to edit /etc/hosts and append the host name to localhost like this:

127.0.0.1 localhost SuseKde

That’s it :slight_smile:
Another side effect was that Midnight Commander was taking very long to start. After editing the hosts file it now starts instantly.
Also this only appears to be the problem when installing from Live CD. When I install from DVD it for some reason has different network device. After live CD installation the device is named
Ethernet Network Card
And after DVD installation the device is
79c790 [PCnet32 LANCE]
Though I didn’t try Samba on DVD installation I assume there would be no problem judging by Midnight Commander :slight_smile: