[Samba] re. Initial Samba Setup

Kevin Barry kfbarry at bellatlantic.net
Sat Nov 22 02:21:50 GMT 2003


On a recommendation from this list I checked the junklog file, the
output from which I attached below. It looks as if it does not even see
the linux machine as it indicates not seeing "explorer" which is the
local netbios name. The Win XP machine does not even show in the log.

Here is the last entry for nmbd.log:
 *****
[2003/11/21 06:24:58, 0] nmbd/nmbd.c:terminate(54)
  Got SIGTERM: going down...
[2003/11/21 17:36:19, 0] nmbd/nmbd.c:main(665)
  Netbios nameserver version 3.0.0-15 started.
  Copyright Andrew Tridgell and the Samba Team 1994-2003
[2003/11/21 17:42:08, 0]
nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****
  
  Samba name server EXPLORER is now a local master browser for workgroup
WORKGROUP on subnet 192.168.0.20
  
  *****

Here is my very basic smb.conf:

[global]
	workgroup = Workgroup
	netbios name = explorer
[share 1]
	path=/root

lmhosts file:
127.0.0.1 localhost


The junklog makes reference to a file /var/cache/samba/unexpected.tdb.
There are several .tdb files in that directory but not that one.



[root at corryard root]# smbclient -d9 -L explorer > junklog
[2003/11/21 20:49:17, 5] lib/debug.c:debug_dump_status(359)
  INFO: Current debug levels:
    all: True/9
    tdb: False/0
    printdrivers: False/0
    lanman: False/0
    smb: False/0
    rpc_parse: False/0
    rpc_srv: False/0
    rpc_cli: False/0
    passdb: False/0
    sam: False/0
    auth: False/0
    winbind: False/0
    vfs: False/0
    idmap: False/0
[2003/11/21 20:49:17, 3] param/loadparm.c:lp_load(3926)
  lp_load: refreshing parameters
[2003/11/21 20:49:17, 3] param/loadparm.c:init_globals(1303)
  Initialising global parameters
[2003/11/21 20:49:17, 5] lib/iconv.c:smb_register_charset(87)
  Attempting to register new charset UCS-2LE
[2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(95)
  Registered charset UCS-2LE
[2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(87)
  Attempting to register new charset UTF8
[2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(95)
  Registered charset UTF8
[2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(87)
  Attempting to register new charset ASCII
[2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(95)
  Registered charset ASCII
[2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(87)
  Attempting to register new charset 646
[2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(95)
  Registered charset 646
[2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(87)
  Attempting to register new charset UCS2-HEX
[2003/11/21 20:49:18, 5] lib/iconv.c:smb_register_charset(95)
  Registered charset UCS2-HEX
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 3] param/params.c:pm_process(566)
  params.c:pm_process() - Processing configuration file
"/etc/samba/smb.conf"
[2003/11/21 20:49:18, 3] param/loadparm.c:do_section(3429)
  Processing section "[global]"
  doing parameter workgroup = Workgroup
  doing parameter netbios name = explorer
[2003/11/21 20:49:18, 4] param/loadparm.c:handle_netbios_name(2721)
  handle_netbios_name: set global_myname to: EXPLORER
[2003/11/21 20:49:18, 4] param/loadparm.c:lp_load(3958)
  pm_process() returned Yes
[2003/11/21 20:49:18, 7] param/loadparm.c:lp_servicenumber(4068)
  lp_servicenumber: couldn't find homes
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/21 20:49:18, 2] lib/interface.c:add_interface(79)
  added interface ip=192.168.0.20 bcast=192.168.0.255
nmask=255.255.255.0
[2003/11/21 20:49:18, 5] lib/util.c:init_names(292)
  Netbios name list:-
  my_netbios_names[0]="EXPLORER"
[2003/11/21 20:49:18, 3] client/client.c:main(2954)
  Client started (version 3.0.0-15).
[2003/11/21 20:49:18, 5] lib/gencache.c:gencache_init(59)
  Opening cache file at /var/cache/samba/gencache.tdb
[2003/11/21 20:49:18, 5] libsmb/namecache.c:namecache_fetch(195)
  no entry for explorer#20 found.
[2003/11/21 20:49:18, 3] libsmb/namequery.c:resolve_lmhosts(850)
  resolve_lmhosts: Attempting lmhosts lookup for name explorer<0x20>
[2003/11/21 20:49:18, 4] libsmb/namequery.c:getlmhostsent(598)
  getlmhostsent: lmhost entry: 127.0.0.1 localhost
[2003/11/21 20:49:18, 3] libsmb/namequery.c:resolve_wins(748)
  resolve_wins: Attempting wins lookup for name explorer<0x20>
[2003/11/21 20:49:18, 3] libsmb/namequery.c:resolve_wins(751)
  resolve_wins: WINS server resolution selected and no WINS servers
listed.
[2003/11/21 20:49:18, 3] libsmb/namequery.c:resolve_hosts(944)
  resolve_hosts: Attempting host lookup for name explorer<0x20>
[2003/11/21 20:49:18, 3] libsmb/namequery.c:name_resolve_bcast(690)
  name_resolve_bcast: Attempting broadcast lookup for name
explorer<0x20>
[2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_KEEPALIVE = 0
[2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_REUSEADDR = 1
[2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_BROADCAST = 1
[2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(103)
  Could not test socket option TCP_NODELAY.
[2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_LOWDELAY = 0
[2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_THROUGHPUT = 0
[2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDBUF = 65535
[2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVBUF = 65535
[2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDLOWAT = 1
[2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVLOWAT = 1
[2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDTIMEO = 0
[2003/11/21 20:49:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVTIMEO = 0
[2003/11/21 20:49:18, 5] libsmb/nmblib.c:send_udp(744)
  Sending a packet of len 50 to (192.168.0.255) on port 137
[2003/11/21 20:49:18, 5] tdb/tdbutil.c:tdb_log(724)
  tdb(unnamed): tdb_open_ex: could not open file
/var/cache/samba/unexpected.tdb: No such file or directory
[2003/11/21 20:49:18, 5] tdb/tdbutil.c:tdb_log(724)
  tdb(unnamed): tdb_open_ex: could not open file
/var/cache/samba/unexpected.tdb: No such file or directory
[2003/11/21 20:49:18, 5] tdb/tdbutil.c:tdb_log(724)
  tdb(unnamed): tdb_open_ex: could not open file
/var/cache/samba/unexpected.tdb: No such file or directory
[2003/11/21 20:49:18, 5] libsmb/nmblib.c:send_udp(744)
  Sending a packet of len 50 to (192.168.0.255) on port 137
[2003/11/21 20:49:18, 5] tdb/tdbutil.c:tdb_log(724)
  tdb(unnamed): tdb_open_ex: could not open file
/var/cache/samba/unexpected.tdb: No such file or directory
[2003/11/21 20:49:19, 5] tdb/tdbutil.c:tdb_log(724)
  tdb(unnamed): tdb_open_ex: could not open file
/var/cache/samba/unexpected.tdb: No such file or directory
[2003/11/21 20:49:19, 5] tdb/tdbutil.c:tdb_log(724)
  tdb(unnamed): tdb_open_ex: could not open file
/var/cache/samba/unexpected.tdb: No such file or directory
[2003/11/21 20:49:19, 5] libsmb/nmblib.c:send_udp(744)
  Sending a packet of len 50 to (192.168.0.255) on port 137
[2003/11/21 20:49:19, 5] tdb/tdbutil.c:tdb_log(724)
  tdb(unnamed): tdb_open_ex: could not open file
/var/cache/samba/unexpected.tdb: No such file or directory
[2003/11/21 20:49:19, 5] tdb/tdbutil.c:tdb_log(724)
  tdb(unnamed): tdb_open_ex: could not open file
/var/cache/samba/unexpected.tdb: No such file or directory
[2003/11/21 20:49:19, 5] tdb/tdbutil.c:tdb_log(724)
  tdb(unnamed): tdb_open_ex: could not open file
/var/cache/samba/unexpected.tdb: No such file or directory
[root at corryard root]#






More information about the samba mailing list