smbclient fails to connect

Mark Miller Mark.Miller at CTMC.com
Thu Apr 5 20:47:15 GMT 2001


I need assistance.

I have loaded and reloaded Samba 2.0.7 on a SCO 5.0.5 server. It still is
not working. When I run "make install" I get warnings about "incompatible
with prototype". I can load the smbd and nmbd from the inetd.conf. After the
inetd.conf load the ports show in the "netstat -a" listing. My ping tests
work and I can echo hello on port 139. When I run smbstatus it can't open
the STATUS..LCK. Further investigation reveals that there is no LCK file.
I've run through the Diagnostic.txt and the smbclient test fails. Testparm
runs fine on the smb.conf. My interface sets appear to set correctly. Here
are lines from the log.nmb.

log.nmb

[2001/04/05 13:41:01, 1] nmbd/nmbd.c:(757)
  Netbios nameserver version 2.0.7 started.
  Copyright Andrew Tridgell 1994-1998
[2001/04/05 13:41:01, 3] param/loadparm.c:(902)
  Initialising global parameters
[2001/04/05 13:41:01, 3] param/params.c:(552)
  params.c:pm_process() - Processing configuration file
"/usr/local/samba/lib/smb.conf"
  doing parameter workgroup = BOULDER
  doing parameter wins server = 192.168.1.53
  doing parameter guest account = guest
  doing parameter load printers = yes
  doing parameter printcap name = /etc/printcap
  doing parameter null passwords = yes
  doing parameter security = share
[2001/04/05 13:41:01, 3] param/loadparm.c:(2805)
  pm_process() returned Yes
[2001/04/05 13:41:01, 3] nmbd/nmbd.c:(289)
  services not loaded
[2001/04/05 13:41:01, 5] lib/charset.c:(196)
  load_client_codepage: loading codepage 850.
[2001/04/05 13:41:01, 5] lib/util_unistr.c:(418)
  load_unicode_map: loading unicode map for codepage 850.
[2001/04/05 13:41:01, 5] nmbd/nmbd.c:(602)
  Netbios name list:-
  my_netbios_names[0]="BLDRERP1"
[2001/04/05 13:41:01, 3] nmbd/nmbd.c:(806)
  Opening sockets 137
[2001/04/05 13:41:01, 3] lib/util_sock.c:(875)
  bind succeeded on port 138
[2001/04/05 13:41:01, 3] nmbd/nmbd.c:(520)
  open_sockets: Broadcast sockets opened.
[2001/04/05 13:41:01, 2] lib/interface.c:(83)
  added interface ip=192.168.1.50 bcast=192.168.1.255 nmask=255.255.255.0
[2001/04/05 13:41:01, 3] lib/util_sock.c:(875)
  bind succeeded on port 137
[2001/04/05 13:41:01, 3] lib/util_sock.c:(875)
  bind succeeded on port 138
[2001/04/05 13:41:01, 2] nmbd/nmbd_subnetdb.c:(195)
  making subnet name:192.168.1.50 Broadcast address:192.168.1.255 Subnet
mask:255.255.255.0
[2001/04/05 13:41:01, 2] nmbd/nmbd_subnetdb.c:(195)
  making subnet name:UNICAST_SUBNET Broadcast address:192.168.1.53 Subnet
mask:192.168.1.53
[2001/04/05 13:41:01, 2] nmbd/nmbd_subnetdb.c:(195)
  making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0
Subnet mask:0.0.0.0
[2001/04/05 13:41:01, 4] libsmb/namequery.c:(351)
  startlmhosts: Can't open lmhosts file /usr/local/samba/lib/lmhosts. Error
was No such file or directory
[2001/04/05 13:41:01, 2] nmbd/nmbd_lmhosts.c:(43)
  load_lmhosts_file: Can't open lmhosts file /usr/local/samba/lib/lmhosts.
Error was No such file or directory
[2001/04/05 13:41:01, 3] nmbd/nmbd.c:(825)
  Loaded hosts file
[2001/04/05 13:41:01, 4] nmbd/nmbd_workgroupdb.c:(188)
  create_workgroup_on_subnet: creating group BOULDER on subnet 192.168.1.50
[2001/04/05 13:41:01, 3] nmbd/nmbd_namelistdb.c:(249)
  add_name_to_subnet: Added netbios name *<00> with first IP 192.168.1.50
ttl=0 nb_flags=40 to subnet 192.168.1.50
[2001/04/05 13:41:01, 3] nmbd/nmbd_namelistdb.c:(249)
  add_name_to_subnet: Added netbios name *<20> with first IP 192.168.1.50
ttl=0 nb_flags=40 to subnet 192.168.1.50
[2001/04/05 13:41:01, 3] nmbd/nmbd_namelistdb.c:(249)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP
192.168.1.50 ttl=0 nb_flags=40 to subnet 192.168.1.50
[2001/04/05 13:41:01, 3] nmbd/nmbd_namelistdb.c:(249)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP
192.168.1.50 ttl=0 nb_flags=40 to subnet 192.168.1.50
[2001/04/05 13:41:01, 4] nmbd/nmbd_packets.c:(340)
  initiate_name_register_packet: sending registration for name BLDRERP1<20>
(bcast=Yes) to IP 192.168.1.255
[2001/04/05 13:41:01, 4] libsmb/nmblib.c:(109)
  nmb packet from 192.168.1.255(137) header: id=16382 opcode=Registration(5)
response=No
      header: flags: bcast=Yes rec_avail=No rec_des=Yes trunc=No auth=No
      header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=1
      question: q_name=BLDRERP1<20> q_type=32 q_class=1
      additional: nmb_name=BLDRERP1<20> rr_type=32 rr_class=1 ttl=0
      additional   0 char @....2   hex 4000C0A80132
[2001/04/05 13:41:01, 5] libsmb/nmblib.c:(748)
  Sending a packet of len 68 to (192.168.1.255) on port 137
[2001/04/05 13:41:01, 4] nmbd/nmbd_responserecordsdb.c:(47)
  add_response_record: adding response record id:16382 to subnet
192.168.1.50. num_records:1
[2001/04/05 13:41:01, 4] nmbd/nmbd_packets.c:(340)
  initiate_name_register_packet: sending registration for name BLDRERP1<03>
(bcast=Yes) to IP 192.168.1.255
[2001/04/05 13:41:01, 4] libsmb/nmblib.c:(109)
  nmb packet from 192.168.1.255(137) header: id=16383 opcode=Registration(5)
response=No
      header: flags: bcast=Yes rec_avail=No rec_des=Yes trunc=No auth=No
      header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=1
      question: q_name=BLDRERP1<03> q_type=32 q_class=1
      additional: nmb_name=BLDRERP1<03> rr_type=32 rr_class=1 ttl=0
      additional   0 char @....2   hex 4000C0A80132
[2001/04/05 13:41:01, 5] libsmb/nmblib.c:(748)
  Sending a packet of len 68 to (192.168.1.255) on port 137
[2001/04/05 13:41:01, 4] nmbd/nmbd_responserecordsdb.c:(47)
  add_response_record: adding response record id:16383 to subnet
192.168.1.50. num_records:2
[2001/04/05 13:41:01, 4] nmbd/nmbd_packets.c:(340)
  initiate_name_register_packet: sending registration for name BLDRERP1<00>
(bcast=Yes) to IP 192.168.1.255
[2001/04/05 13:41:01, 4] libsmb/nmblib.c:(109)
  nmb packet from 192.168.1.255(137) header: id=16384 opcode=Registration(5)
response=No
      header: flags: bcast=Yes rec_avail=No rec_des=Yes trunc=No auth=No
      header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=1
      question: q_name=BLDRERP1<00> q_type=32 q_class=1
      additional: nmb_name=BLDRERP1<00> rr_type=32 rr_class=1 ttl=0
      additional   0 char @....2   hex 4000C0A80132
[2001/04/05 13:41:01, 5] libsmb/nmblib.c:(748)
  Sending a packet of len 68 to (192.168.1.255) on port 137
[2001/04/05 13:41:01, 4] nmbd/nmbd_responserecordsdb.c:(47)
  add_response_record: adding response record id:16384 to subnet
192.168.1.50. num_records:3
[2001/04/05 13:41:01, 4] nmbd/nmbd_packets.c:(340)
  initiate_name_register_packet: sending registration for name BOULDER<00>
(bcast=Yes) to IP 192.168.1.255
[2001/04/05 13:41:01, 4] libsmb/nmblib.c:(109)
  nmb packet from 192.168.1.255(137) header: id=16385 opcode=Registration(5)
response=No
      header: flags: bcast=Yes rec_avail=No rec_des=Yes trunc=No auth=No
      header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=1
      question: q_name=BOULDER<00> q_type=32 q_class=1
      additional: nmb_name=BOULDER<00> rr_type=32 rr_class=1 ttl=0
      additional   0 char .....2   hex C000C0A80132
[2001/04/05 13:41:01, 5] libsmb/nmblib.c:(748)
  Sending a packet of len 68 to (192.168.1.255) on port 137
[2001/04/05 13:41:01, 4] nmbd/nmbd_responserecordsdb.c:(47)
  add_response_record: adding response record id:16385 to subnet
192.168.1.50. num_records:4
[2001/04/05 13:41:01, 4] nmbd/nmbd_packets.c:(340)
  initiate_name_register_packet: sending registration for name BOULDER<1e>
(bcast=Yes) to IP 192.168.1.255
[2001/04/05 13:41:01, 4] libsmb/nmblib.c:(109)
  nmb packet from 192.168.1.255(137) header: id=16386 opcode=Registration(5)
response=No
      header: flags: bcast=Yes rec_avail=No rec_des=Yes trunc=No auth=No
      header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=1
      question: q_name=BOULDER<1e> q_type=32 q_class=1
      additional: nmb_name=BOULDER<1e> rr_type=32 rr_class=1 ttl=0
      additional   0 char .....2   hex C000C0A80132
[2001/04/05 13:41:01, 5] libsmb/nmblib.c:(748)
  Sending a packet of len 68 to (192.168.1.255) on port 137
[2001/04/05 13:41:01, 4] nmbd/nmbd_responserecordsdb.c:(47)
  add_response_record: adding response record id:16386 to subnet
192.168.1.50. num_records:5
[2001/04/05 13:41:01, 3] nmbd/nmbd_serverlistdb.c:(173)
  create_server_on_workgroup: Created server entry BLDRERP1 of type 40019a03
(Samba 2.0.7) on workgroup BOULDER.
[2001/04/05 13:41:01, 3] nmbd/nmbd_workgroupdb.c:(273)
  initiate_myworkgroup_startup: Added server name entry BLDRERP1 on subnet
192.168.1.50
[2001/04/05 13:41:01, 4] nmbd/nmbd_workgroupdb.c:(188)
  create_workgroup_on_subnet: creating group BOULDER on subnet
UNICAST_SUBNET
[2001/04/05 13:41:01, 3] nmbd/nmbd_namelistdb.c:(249)
  add_name_to_subnet: Added netbios name *<00> with first IP 192.168.1.50
ttl=0 nb_flags=40 to subnet UNICAST_SUBNET
[2001/04/05 13:41:01, 3] nmbd/nmbd_namelistdb.c:(249)
  add_name_to_subnet: Added netbios name *<20> with first IP 192.168.1.50
ttl=0 nb_flags=40 to subnet UNICAST_SUBNET
[2001/04/05 13:41:01, 3] nmbd/nmbd_namelistdb.c:(249)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP
192.168.1.50 ttl=0 nb_flags=40 to subnet UNICAST_SUBNET
[2001/04/05 13:41:01, 3] nmbd/nmbd_namelistdb.c:(249)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP
192.168.1.50 ttl=0 nb_flags=40 to subnet UNICAST_SUBNET
[2001/04/05 13:41:01, 4] nmbd/nmbd_packets.c:(340)
  initiate_name_register_packet: sending registration for name BLDRERP1<20>
(bcast=No) to IP 192.168.1.53
[2001/04/05 13:41:01, 4] libsmb/nmblib.c:(109)
  nmb packet from 192.168.1.53(137) header: id=16387 opcode=Registration(5)
response=No
      header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=No
      header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=1
      question: q_name=BLDRERP1<20> q_type=32 q_class=1
      additional: nmb_name=BLDRERP1<20> rr_type=32 rr_class=1 ttl=259200
      additional   0 char @....2   hex 4000C0A80132
[2001/04/05 13:41:01, 5] libsmb/nmblib.c:(748)
  Sending a packet of len 68 to (192.168.1.53) on port 137
[2001/04/05 13:41:01, 4] nmbd/nmbd_responserecordsdb.c:(47)
  add_response_record: adding response record id:16387 to subnet
UNICAST_SUBNET. num_records:6
[2001/04/05 13:41:01, 4] nmbd/nmbd_packets.c:(340)
  initiate_name_register_packet: sending registration for name BLDRERP1<03>
(bcast=No) to IP 192.168.1.53
[2001/04/05 13:41:01, 4] libsmb/nmblib.c:(109)
  nmb packet from 192.168.1.53(137) header: id=16388 opcode=Registration(5)
response=No
      header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=No
      header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=1
      question: q_name=BLDRERP1<03> q_type=32 q_class=1
      additional: nmb_name=BLDRERP1<03> rr_type=32 rr_class=1 ttl=259200
      additional   0 char @....2   hex 4000C0A80132
[2001/04/05 13:41:01, 5] libsmb/nmblib.c:(748)
  Sending a packet of len 68 to (192.168.1.53) on port 137
[2001/04/05 13:41:01, 4] nmbd/nmbd_responserecordsdb.c:(47)
  add_response_record: adding response record id:16388 to subnet
UNICAST_SUBNET. num_records:7
[2001/04/05 13:41:01, 4] nmbd/nmbd_packets.c:(340)
  initiate_name_register_packet: sending registration for name BLDRERP1<00>
(bcast=No) to IP 192.168.1.53
[2001/04/05 13:41:01, 4] libsmb/nmblib.c:(109)
  nmb packet from 192.168.1.53(137) header: id=16389 opcode=Registration(5)
response=No
      header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=No
      header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=1
      question: q_name=BLDRERP1<00> q_type=32 q_class=1
      additional: nmb_name=BLDRERP1<00> rr_type=32 rr_class=1 ttl=259200
      additional   0 char @....2   hex 4000C0A80132
[2001/04/05 13:41:01, 5] libsmb/nmblib.c:(748)
  Sending a packet of len 68 to (192.168.1.53) on port 137
[2001/04/05 13:41:01, 4] nmbd/nmbd_responserecordsdb.c:(47)
  add_response_record: adding response record id:16389 to subnet
UNICAST_SUBNET. num_records:8
[2001/04/05 13:41:01, 4] nmbd/nmbd_packets.c:(340)
  initiate_name_register_packet: sending registration for name BOULDER<00>
(bcast=No) to IP 192.168.1.53
[2001/04/05 13:41:01, 4] libsmb/nmblib.c:(109)
  nmb packet from 192.168.1.53(137) header: id=16390 opcode=Registration(5)
response=No
      header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=No
      header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=1
      question: q_name=BOULDER<00> q_type=32 q_class=1
      additional: nmb_name=BOULDER<00> rr_type=32 rr_class=1 ttl=259200
      additional   0 char .....2   hex C000C0A80132
[2001/04/05 13:41:01, 5] libsmb/nmblib.c:(748)
  Sending a packet of len 68 to (192.168.1.53) on port 137
[2001/04/05 13:41:01, 4] nmbd/nmbd_responserecordsdb.c:(47)
  add_response_record: adding response record id:16390 to subnet
UNICAST_SUBNET. num_records:9
[2001/04/05 13:41:01, 4] nmbd/nmbd_packets.c:(340)
  initiate_name_register_packet: sending registration for name BOULDER<1e>
(bcast=No) to IP 192.168.1.53
[2001/04/05 13:41:01, 4] libsmb/nmblib.c:(109)
  nmb packet from 192.168.1.53(137) header: id=16391 opcode=Registration(5)
response=No
      header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=No
      header: rcode=0 qdcount=1 ancount=0 nscount=0 arcount=1
      question: q_name=BOULDER<1e> q_type=32 q_class=1
      additional: nmb_name=BOULDER<1e> rr_type=32 rr_class=1 ttl=259200
      additional   0 char .....2   hex C000C0A80132
[2001/04/05 13:41:01, 5] libsmb/nmblib.c:(748)
  Sending a packet of len 68 to (192.168.1.53) on port 137
[2001/04/05 13:41:01, 4] nmbd/nmbd_responserecordsdb.c:(47)
  add_response_record: adding response record id:16391 to subnet
UNICAST_SUBNET. num_records:10
[2001/04/05 13:41:01, 3] nmbd/nmbd_serverlistdb.c:(173)
  create_server_on_workgroup: Created server entry BLDRERP1 of type 40019a03
(Samba 2.0.7) on workgroup BOULDER.
[2001/04/05 13:41:01, 3] nmbd/nmbd_workgroupdb.c:(273)
  initiate_myworkgroup_startup: Added server name entry BLDRERP1 on subnet
UNICAST_SUBNET
[2001/04/05 13:41:01, 3] nmbd/nmbd_namelistdb.c:(249)
  add_name_to_subnet: Added netbios name *<00> with first IP 192.168.1.50
ttl=0 nb_flags=40 to subnet REMOTE_BROADCAST_SUBNET
[2001/04/05 13:41:01, 3] nmbd/nmbd_namelistdb.c:(249)
  add_name_to_subnet: Added netbios name *<20> with first IP 192.168.1.50
ttl=0 nb_flags=40 to subnet REMOTE_BROADCAST_SUBNET
[2001/04/05 13:41:01, 3] nmbd/nmbd_namelistdb.c:(249)
  add_name_to_subnet: Added netbios name __SAMBA__<20> with first IP
192.168.1.50 ttl=0 nb_flags=40 to subnet REMOTE_BROADCAST_SUBNET
[2001/04/05 13:41:01, 3] nmbd/nmbd_namelistdb.c:(249)
  add_name_to_subnet: Added netbios name __SAMBA__<00> with first IP
192.168.1.50 ttl=0 nb_flags=40 to subnet REMOTE_BROADCAST_SUBNET
[2001/04/05 13:41:01, 0] lib/fault.c:(40)
  ===============================================================
[2001/04/05 13:41:01, 0] lib/fault.c:(41)
  INTERNAL ERROR: Signal 11 in pid 8522 (2.0.7)
  Please read the file BUGS.txt in the distribution
[2001/04/05 13:41:01, 0] lib/fault.c:(43)
  ===============================================================
[2001/04/05 13:41:01, 0] lib/util.c:(2381)
  PANIC: internal error

Thanks Mark




More information about the samba mailing list