Linux – Share Folders on OpenSUSE 13.1 Using SAMBA (Share Not Working)

linuxnetwork-sharesopensusesamba

Gentlemen,

I tried all ways to share folders on OpenSUSE 13.1 using SAMBA, but without success. Frankly, I do not know what to do to resolve this situation.

Among my actions are taken…

 

  1. Stop the firewall
  2. Do the procedures set out in :

I can make the server work normally and without error including its parameters (testparm), but I can not access it from another machine (Linux or Windows) using "smb://[MACHINE_IP]/[SHARE_NAME]" or "\[MACHINE_IP][SHARE_NAME]"! I also tested using the machine itself.

Nothing seems to make samba work. What was supposed to be a simple and ordinary thing in other distributions became a nightmare. I'm beginning to think that this is a problem in the distribution itself!

I can not imagine what can be done! = /

Please help me!

Thanks in advance!

More!

Below I put the outputs of the smbd and nmbd logs!

These logs covering the time when I start the service to when I try to access the share from another computer!

vim /var/log/samba/log.smbd

[2014/02/10 11:58:31,  0] ../source3/smbd/server.c:1198(main)
  smbd version 4.1.3-3.12.1-3127-SUSE-oS13.1-x86_64 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2013
[2014/02/10 11:58:31.412297,  0] ../source3/smbd/server.c:1278(main)
  standard input is not a socket, assuming -D option

vim /var/log/samba/log.nmbd

[2014/02/10 11:58:26,  0] ../source3/nmbd/nmbd.c:902(main)
  nmbd version 4.1.3-3.12.1-3127-SUSE-oS13.1-x86_64 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2013
[2014/02/10 11:58:26,  0] ../source3/nmbd/nmbd.c:941(main)
  standard input is not a socket, assuming -D option

"iptables –list" RESULT:

Chain INPUT (policy DROP)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            
ACCEPT     all  --  anywhere             anywhere             ctstate ESTABLISHED
ACCEPT     icmp --  anywhere             anywhere             ctstate RELATED
input_ext  all  --  anywhere             anywhere            
LOG        all  --  anywhere             anywhere             limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix "SFW2-IN-ILL-TARGET "
DROP       all  --  anywhere             anywhere            

Chain FORWARD (policy DROP)
target     prot opt source               destination         
LOG        all  --  anywhere             anywhere             limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix "SFW2-FWD-ILL-ROUTING "

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere            

Chain forward_ext (0 references)
target     prot opt source               destination         

Chain input_ext (1 references)
target     prot opt source               destination         
ACCEPT     udp  --  anywhere             anywhere             PKTTYPE = broadcast udp dpt:netbios-ns
ACCEPT     udp  --  anywhere             anywhere             PKTTYPE = broadcast udp dpt:netbios-dgm
DROP       all  --  anywhere             anywhere             PKTTYPE = broadcast
ACCEPT     icmp --  anywhere             anywhere             icmp source-quench
ACCEPT     icmp --  anywhere             anywhere             icmp echo-request
ACCEPT     udp  --  anywhere             anywhere             udp spt:netbios-ns ctstate RELATED
LOG        tcp  --  anywhere             anywhere             limit: avg 3/min burst 5 tcp dpt:netbios-ssn flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix "SFW2-INext-ACC-TCP "
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:netbios-ssn
LOG        tcp  --  anywhere             anywhere             limit: avg 3/min burst 5 tcp dpt:microsoft-ds flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix "SFW2-INext-ACC-TCP "
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:microsoft-ds
ACCEPT     udp  --  anywhere             anywhere             udp dpt:netbios-ns
ACCEPT     udp  --  anywhere             anywhere             udp dpt:netbios-dgm
DROP       all  --  anywhere             anywhere             PKTTYPE = multicast
DROP       all  --  anywhere             anywhere             PKTTYPE = broadcast
LOG        tcp  --  anywhere             anywhere             limit: avg 3/min burst 5 tcp flags:FIN,SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix "SFW2-INext-DROP-DEFLT "
LOG        icmp --  anywhere             anywhere             limit: avg 3/min burst 5 LOG level warning tcp-options ip-options prefix "SFW2-INext-DROP-DEFLT "
LOG        udp  --  anywhere             anywhere             limit: avg 3/min burst 5 ctstate NEW LOG level warning tcp-options ip-options prefix "SFW2-INext-DROP-DEFLT "
DROP       all  --  anywhere             anywhere            

Chain reject_func (0 references)
target     prot opt source               destination         
REJECT     tcp  --  anywhere             anywhere             reject-with tcp-reset
REJECT     udp  --  anywhere             anywhere             reject-with icmp-port-unreachable
REJECT     all  --  anywhere             anywhere             reject-with icmp-proto-unreachable

Conclusions so far:

Some peculiarity of the corporate network where I work is blocking access to Samba OpenSUSE 13.1, because in my home network samba works perfectly.

The OpenSUSE 13.1 is running on a VMWare using NAT network. In my view there should not be any interference from the outside network, since I'm using NAT.

I have an other virtual machine running Linux Mint 16 KDE on VMWare using NAT. Samba works perfectly in both my home network and the corporate network which leads me to believe that this is some configuration to be taken in the openSUSE 13.1 to make samba work.

Below I put the output from running "smbclient" over my host to both virtual machines:

smbclient //172.16.124.141/share -N -U'brlight%brlight'
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.18]
smb: \>

smbclient //172.16.124.136/share -N -U'brlight%brlight'
protocol negotiation failed: NT_STATUS_IO_TIMEOUT

This link has detailed and additional information about my problem.

https://forums.opensuse.org/showthread.php/495277-Share-Folders-on-OpenSUSE-13-1-Using-SAMBA-(Share-Not-Working)

Best Answer

[global]
        workgroup = WORKGROUP
        passdb backend = tdbsam
        printing = cups
        printcap name = cups
        printcap cache time = 750
        cups options = raw
        map to guest = Bad User
        include = /etc/samba/dhcp.conf
        logon path = \\%L\profiles\.msprofile
        logon home = \\%L\%U\.9xprofile
        logon drive = P:
        usershare allow guests = Yes

[sharename]
        comment = Stuff
        valid users = root, %S, %D%w%S
        path=<location of files>
        read only = No

is the output of iptables --list This:

  • Chain INPUT (policy ACCEPT) target prot opt source
    destination

    Chain FORWARD (policy ACCEPT) target prot opt source
    destination

    Chain OUTPUT (policy ACCEPT) target prot opt source
    destination

Related Question