LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-15-2011, 06:31 PM   #1
tw1light
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
smbd bind to port 139 failed.


Hi

I have just installed Debian 6.0.1 base install, for the use of a file server.
I installed samba using apt-get and am using: smbd version 3.5.6

Here is my smb.conf file. Very basic, which by the way, seems OK according to the output of testparm.

Code:
[global]
        log level = 3
        workgroup = INERT
        wins support = yes
[test]
        comment = Testing Only
        path = /export/tmp
        read only = No
First of all, I connect to the samba server locally, using:
smbclient -L localhost -N

Code:
Anonymous login successful
Domain=[INERT] OS=[Unix] Server=[Samba 3.5.6]

        Sharename       Type      Comment
        ---------       ----      -------
        test            Disk      Testing Only
        IPC$            IPC       IPC Service (Samba 3.5.6)
Anonymous login successful
Domain=[INERT] OS=[Unix] Server=[Samba 3.5.6]

        Server               Comment
        ---------            -------
        ARGON
        XENON                Samba 3.5.6

        Workgroup            Master
        ---------            -------
        INERT                XENON
Server ARGON, by the way is the name of an XP machine. I can't see anything in 'My Network Places', but if I type the IP address of the samba box into explorer on the XP machine, then I can view the share, 'test', however I can't access it despite the permissions on the samba server for /export and /export/tmp being set to 777.

Then, I add an account using smbpasswd (and one that's already present in /etc/passwd). And try and log into the server using this account.

smbclient //localhost/test -U ross

Code:
Enter ross's password:
Domain=[INERT] OS=[Unix] Server=[Samba 3.5.6]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
Before I even attempt to log in however, I examined the output of the smdb login files.

This is the result of the log file from /var/log/samba/smbd.conf

Code:
 lib/util_sock.c:880(open_socket_in)
  bind failed on port 445 socket_addr = 0.0.0.0.
  Error = Address already in use
[2011/06/15 22:19:51.969638,  0] 

smbd/server.c:500(smbd_open_one_socket)
  smbd_open_once_socket: open_socket_in: Address already in use
lib/util_sock.c:880(open_socket_in)
  bind failed on port 139 socket_addr = 0.0.0.0.
  Error = Address already in use
Output from netstat -an | egrep "13|445)" :
Code:
tcp6       0      0 :::445                  :::*                    LISTEN
tcp6       0      0 :::139                  :::*                    LISTEN
udp        0      0 192.168.2.255:137       0.0.0.0:*
udp        0      0 192.168.2.4:137         0.0.0.0:*
udp        0      0 0.0.0.0:137             0.0.0.0:*
udp        0      0 192.168.2.255:138       0.0.0.0:*
udp        0      0 192.168.2.4:138         0.0.0.0:*
udp        0      0 0.0.0.0:138             0.0.0.0:*
And output from lsof -i | grep .mbd:

Code:
smbd      4886        root   25u  IPv6  18313      0t0  TCP *:microsoft-ds (LISTEN)
smbd      4886        root   26u  IPv6  18315      0t0  TCP *:netbios-ssn (LISTEN)
nmbd      4889        root   12u  IPv4  18332      0t0  UDP *:netbios-ns
nmbd      4889        root   13u  IPv4  18333      0t0  UDP *:netbios-dgm
nmbd      4889        root   14u  IPv4  18339      0t0  UDP 192.168.2.4:netbios-ns
nmbd      4889        root   15u  IPv4  18340      0t0  UDP 192.168.2.255:netbios-ns
nmbd      4889        root   16u  IPv4  18341      0t0  UDP 192.168.2.4:netbios-dgm
nmbd      4889        root   17u  IPv4  18342      0t0  UDP 192.168.2.255:netbios-dgm
I don't understand why smbd is not reportedly binding to IPv4 ports.

As you can see this threat is somewhat long, so thanks for taking the time to look through it and I hope that I haven't caused anyone to spend their time looking through it by doing something really silly!

Last edited by tw1light; 06-15-2011 at 06:39 PM. Reason: had to change /export/test to /export/tmp
 
Old 06-15-2011, 06:41 PM   #2
tw1light
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
It was something silly. I misspelt a directory name in my path. I feel like crying. Sorry folks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bind failed on ports 139 + 445 Alkisx Slackware 3 11-06-2009 06:31 AM
Failed to bind port.. Skillz Linux - Networking 5 06-30-2009 09:27 PM
SSH: error: Bind to port 22 on 0.0.0.0 failed: Address already in use. Swakoo Linux - Security 6 05-08-2007 04:24 AM
Logwatch reports SSHD Killed: / Failed to bind: 0.0.0.0 port 22 rioguia Linux - Security 1 08-13-2005 12:24 PM
Port 139 jmarsh Linux - Networking 5 03-06-2003 11:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration