[Samba] bind failed on port 445 socket_addr = 0.0.0.0.

Eric PEYREMORTE eric.peyremorte at iut-valence.fr
Tue Sep 7 01:58:20 MDT 2010


  Hi,

I've just upgraded an old samba 3.0.23 on an old Fedora Core 5 to samba 
3.5.4 using an rpm built from the source.

Everything works fine, but when i start the server i get some error 
messages(see below).

Before i start the server there is no connection (tested with lsof and 
fuser) on the 139 and 445 ports, smbd or nmbd aren't running.

With the old version i never had this message.

I suppose it means nmbd ans smbd won't connect  to the "all addresses" 
interface (0.0.0.0).

What can i check to fix this ?

[2010/09/07 00:44:57.390890,  2] lib/util_sock.c:875(open_socket_in)
   bind failed on port 445 socket_addr = 0.0.0.0.
   Error = Address already in use
[2010/09/07 00:44:57.391590,  0] smbd/server.c:500(smbd_open_one_socket)
   smbd_open_once_socket: open_socket_in: Address already in use.
[2010/09/07 00:44:57.391754,  2] lib/util_sock.c:875(open_socket_in)
   bind failed on port 139 socket_addr = 0.0.0.0.
   Error = Address already in use.
[2010/09/07 00:44:57.391819,  0] smbd/server.c:500(smbd_open_one_socket)
   smbd_open_once_socket: open_socket_in: Address already in use.

Here is my global section of smb.conf :

[global]
         dos charset = 850
         workgroup = ADMINISTRATIF
         server string = Serveur Samba Administratif
         passdb backend = ldapsam:ldap://172.30.1.10/
         username map = /etc/samba/smbusers
         log file = /var/log/samba/%m.log
         max log size = 500
         name resolve order = host wins bcast
         time server = Yes
         socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
         printcap name = cups
         add user script = /usr/sbin/smbldap-useradd -m "%u"
         delete user script = /usr/sbin/smbldap-userdel "%u"
         add group script = /usr/sbin/smbldap-groupadd -p "%g"
         delete group script = /usr/sbin/smbldap-groupdel "%g"
         add user to group script = /usr/sbin/smbldap-groupmod -x "%u" "%g"
         delete user from group script = /usr/sbin/smbldap-groupmod -x 
"%u" "%g"
         set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
         add machine script = /usr/sbin/smbldap-useradd -w "%u"
         logon script = logon.bat
         logon path = \\brezeme\profiles\%a\%U
         logon drive = g:
         logon home = \\brezeme\%U
         domain logons = Yes
         os level = 75
         preferred master = Yes
         domain master = Yes
         dns proxy = No
         wins support = Yes
         ldap admin dn = cn=Manager,dc=iut-valence,dc=fr
         ldap delete dn = Yes
         ldap group suffix = ou=Groups
         ldap idmap suffix = ou=Idmap
         ldap machine suffix = ou=Computers
         ldap passwd sync = yes
         ldap suffix = ou=Adminprofs,dc=iut-valence,dc=fr
         ldap ssl = no
         ldap user suffix = ou=Users
         passdb expand explicit = Yes
         idmap uid = 16777216-33554431
         idmap gid = 16777216-33554431
         admin users = root, peyremor, chechat, renaudet, bernardi
         create mask = 0640
         directory mask = 0750
         cups options = raw
         hide files = /config/Desktop/../
         veto oplock files = 
/*.mdb/*.ldb/*.mbx/*.toc/*.cwk/*.CWK/*.sss/*.dat/*.
msf/*.db/

-- 
Eric PEYREMORTE
Technicien informatique - IUT de Valence
Tel : 04.75.41.88.37



More information about the samba mailing list