1838627 Members
3293 Online
110128 Solutions
New Discussion

Re: Samba error

 
Cai Nan
Advisor

Samba error

Morning, all.
I successfully compile and install samba2.2.2 on HP10.20, and could start ./nmbd -D without error.But when I use ./smbd -D,I got following error:
[2002/01/29 18:12:50, 0 lib/util_sock.c:open_socket_in(830)
bind failed on port 139 socket_addr = 0.0.0.0.
Error = Address already in use

Could you tell me what's the meaning of this sentence, and how to solve this.
By the way, the samba was on a NT lan,with a primary NT DNS server,this HP10.20 only be configured as cache DNS.

Thanks
--Frank
DAEMON
3 REPLIES 3
S.K. Chan
Honored Contributor

Re: Samba error

If might be that netbios is running already on your system. Check it ..
# ps -ef|grep netbios
If this is the case this will cause NMBD not being able to bind to that port.
You can edit /etc/rc.config.d/lmu and put "0" at the line that says
LMU_NETBIOS
Then reboot your system so that netbios doesn't start. Now start nmbd again.
Hartmut Lang
Trusted Contributor

Re: Samba error

You can also check /etc/services if another service uses port 139.

Hardy
Charles Harris
Super Advisor

Re: Samba error

Just a quickie, if samba started or shutdown abnormally, it's possible that the port is left in a FIN_WAIT state. You could try netstat -an and see if the port has any connections / up. If it has, they should time out, or you can use ndd (11.) or nettune to configure the timout manually.

Hope this is of some use!

-ChaZ-