Samba and Swat not starting or connecting to WIN Network

Hi,

like others I can not start Samba and Swat.

Existing Environment:

SERVER SUSE 11.3 Server Samba Server installed, Swat installed IP=xxx.yy.1.14
SERVER WIN Proxy with NetBios and WINS IP=xxx.yy.1.2
SERVER WIN File etc. IP=xxx.yy.1.4
CLIENT PC with WIN7 IP=xxx.yy.1.116

Internet Connection works fine, also to get internet pages on CLIENT PC via Apache/MySql Installation (Joomla, phpBB) from SERVER SUSE

Problem

I can start smb, nmb and winbind

Error Messages from logs:

SMBD
smbd_open_once_socket: open_socket_in: this address is already in use

NMDB
become_domain_master_query_success:
There is already a domain master browser at IP xxx.yy.1.4 for workgroup WORKGROUP registered on subnet UNICAST_SUBNET

WINBIND
initialize_winbindd_cache: clearing cache and re-creating with version number 1

I can not update the repositories, or make downloads;
I can not access the SUSE SERVER from any other computer in the network, also when it is visible under network connections on WIN clients.
I can not access the Server via FTP
I can not send emails via Apache, MySql tools like Joomla or phpBB

Failed ways of solving:

I tried to install swat, but I get Firefox brings this message: can not establish a connection etc…

Asking kindly for help with examples,

In order to use Samba SWAT (Samba Web Administration Tool) in openSUSE and with the KDE Desktop, I do the following (Some items are shown in bold for clarity):

**A. **Edit Three Text Files as root and enable the service and remark out the only_from line: (Alt-F2: kdesu kwrite text.file)

  1. /etc/xinetd.d/servers
# default: off
# description: An internal xinetd service, listing active servers.

service servers
{
    type        = INTERNAL UNLISTED
    port        = 9099
    socket_type    = stream
    protocol    = tcp
    wait        = no
**    disable        = no**
**#    only_from    = 127.0.0.1**
    FLAGS        = IPv6 IPv4
}                               
  1. /etc/xinetd.d/services
# default: off
# description: An internal xinetd service, listing active services.

service services
{
    type        = INTERNAL UNLISTED
    port        = 9098
    socket_type    = stream
    protocol    = tcp
    wait        = no
**    disable        = no**
**#    only_from    = 127.0.0.1**
    FLAGS        = IPv6 IPv4
}

  1. /etc/xinetd.d/swat
# SWAT is the Samba Web Administration Tool.
service swat
{
    socket_type     =  stream
    protocol        =  tcp
    wait            =  no
    user            =  root
    server          =  /usr/sbin/swat
**#    only_from       =  127.0.0.1**
    log_on_failure  += USERID
**    disable         =  no**
}

B. Go to YaST / System / Runlevel / Select Expert Mode and Activate three services:

  1. xinetd
    2.** smb**
  2. nmb

Highlight the service with your mouse, pick the Set/Reset Button on the bottom right and elect to Enable the Service. Next, select the Start/Stop/Refresh button on the bottom left and select **Start Now **… When a service is started properly, you get a return code of zero.

C. Go to YaST / Security and Users / Firewall / Allowed Services (on left) / Allowed Service Listing and add under External Zone: NetBios Server, Samba Client, Samba Server and then press the Next button on bottom right and then the Finish Button, also on bottom right.

D. Add in the Samba Document File for SWAT. open YaST / Software / Software Management and search on Samba and place a check by samba-doc package and pick Accept on the bottom right and allow it to be installed.

E. When using Firefox to start Samba SWAT, you use the URL: http://localhost:901

F. When you want to browse your samba Network, you can use the command: dolphin smb://windowsnt/, the name windowsnt should be changed to the name of your workgroup which will be different.

G. Here is an Example smb file where I am only sharing NTFS Partitions over the network:

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2011-11-02

[global]
    workgroup = WINDOWSNT
    netbios name = MASTERLINUX
    server string = The Master of the Universe
    security = SHARE
    map to guest = Bad User
    name resolve order = bcast host lmhosts wins
    printcap name = cups
    preferred master = Auto
    local master = No
    domain master = No
    wins support = No
    usershare allow guests = Yes
    usershare max shares = 100
    hosts allow = 192.168.0.0/255.255.255.0, 127.0.0.1
    hosts deny = ALL
    cups options = raw
    write raw = yes
    read raw = no

[Software]
    path = /Software
    read only = No
    acl check permissions = No
        inherit acls = Yes
        guest ok = Yes
        profile acls = Yes

[Windows]
        path = /Windows
        read only = No
        acl check permissions = No
        inherit acls = Yes
        guest ok = Yes
        profile acls = Yes

[DataSafe]
        path = /DataSafe
        read only = No
        acl check permissions = No
        inherit acls = Yes
        guest ok = Yes
        profile acls = Yes

Hopefully this information will be useful to you.

Thank You,

Dear Daniel

thank you a lot, I adjusted mainly two differences: blocking the “only IP address (localhost)” and putting the disable switch off.

The rest was straight forward, and holla, I could browse the intra-network. Thank you.

I could load the SWAT team, and was able to change some issues too.

Still the email thing does not work, and the repros are not updateable, this will be my next step.