[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Samba won't start



I have 2 Debian machines with samba installed.  On one machine it
works (except for the printers, I'll figure that out later) and on the
other [sn]mbd won't start.

I need to get samba running so a windows machine with a printer can
read a couple files and print them

>From /var/log/smb :
[2001/05/23 21:58:14, 1] smbd/server.c:main(641)
  smbd version 2.0.8 started.
  Copyright Andrew Tridgell 1992-1998
[2001/05/23 21:58:15, 1] smbd/files.c:file_init(216)
  file_init: Information only: requested 10000 open files, 1014 are available.
[2001/05/23 21:58:15, 0] lib/util_sock.c:open_socket_in(863)
  bind failed on port 139 socket_addr=0.0.0.0 (Address already in use)

>From /var/log/nmb :

[2001/05/23 22:05:43, 1] nmbd/nmbd.c:main(757)
  Netbios nameserver version 2.0.8 started.
  Copyright Andrew Tridgell 1994-1998
[2001/05/23 22:05:49, 0] lib/util_sock.c:open_socket_in(863)
  bind failed on port 137 socket_addr=192.168.0.1 (Address already in use)
[2001/05/23 22:05:49, 0] nmbd/nmbd_subnetdb.c:make_subnet(142)
nmbd_subnetdb:make_subnet()
  Failed to open nmb socket on interface 192.168.0.1 for port 137.  Error was Address already in use
[2001/05/23 22:05:49, 0] nmbd/nmbd.c:main(817)
  ERROR: Failed when creating subnet lists. Exiting.


Ok, so something is already using the port ... what is using that port
and why?  I don't see anything in netstat -- either on this machine or
the one with samba working.

(from the machine without samba working -- I don't have a console on
it so I use ssh from my other machine, it also serves as a router for
the dial-up connection)

root@md # netstat -n
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 192.168.0.1:22          192.168.0.4:1026        ESTABLISHED
tcp        0    140 192.168.0.1:22          192.168.0.2:1041        ESTABLISHED
tcp        0      0 192.168.0.1:22          192.168.0.2:1040        ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  1      [ ]         STREAM     CONNECTED     26167  @0000000d
unix  1      [ ]         STREAM     CONNECTED     142    @00000001
unix  1      [ ]         STREAM     CONNECTED     177    @00000005
unix  1      [ ]         STREAM     CONNECTED     26168  /dev/log
unix  1      [ ]         STREAM     CONNECTED     178    /dev/log
unix  1      [ ]         STREAM     CONNECTED     143    /dev/log


Any help it locating the conflict and resolving it will be greatly
appreciated.

-D



Reply to: