[Samba] smbclient connect problem

Bob Guely guelyb at yahoo.com
Mon Jan 19 23:17:02 GMT 2004


I've tried everything I can think of, but still cannot
connect to a Windows 2000 share using smbclient.  I
know the shared directory is set up OK because I can
get to it with another Windows box.  My smbclient
command line should be OK because the same syntax
works on another Linux box at work (running a slightly
older version of smbclient) to a similarly setup
Windows box.  This is what I get with d3 debug:

smbclient //guelyb-2k-2/pool mypassword  -N -U GUELYB
-d3
[2004/01/19 17:59:08, 3]
param/loadparm.c:lp_load(3926)
  lp_load: refreshing parameters
[2004/01/19 17:59:08, 3]
param/loadparm.c:init_globals(1303)
  Initialising global parameters
[2004/01/19 17:59:08, 3]
param/params.c:pm_process(566)
  params.c:pm_process() - Processing configuration
file "/etc/samba/smb.conf"
[2004/01/19 17:59:08, 3]
param/loadparm.c:do_section(3429)
  Processing section "[global]"
[2004/01/19 17:59:08, 2]
lib/interface.c:add_interface(79)
  added interface ip=192.168.1.102 bcast=192.168.1.255
nmask=255.255.255.0
[2004/01/19 17:59:08, 3] client/client.c:main(2954)
  Client started (version 3.0.0-15).
[2004/01/19 17:59:08, 3]
libsmb/namequery.c:resolve_lmhosts(850)
  resolve_lmhosts: Attempting lmhosts lookup for name
guelyb-2k-2<0x20>
[2004/01/19 17:59:08, 3]
lib/util_sock.c:open_socket_out(690)
  Connecting to 192.168.1.101 at port 445
[2004/01/19 17:59:08, 2]
libsmb/cliconnect.c:cli_session_setup_spnego(635)
  Doing spnego session setup (blob length=16)
[2004/01/19 17:59:08, 3]
libsmb/cliconnect.c:cli_session_setup_spnego(639)
  server didn't supply a full spnego negprot
[2004/01/19 17:59:08, 3]
libsmb/ntlmssp.c:ntlmssp_client_challenge(469)
  Got challenge flags:
[2004/01/19 17:59:08, 3]
libsmb/ntlmssp.c:debug_ntlmssp_flags(33)
  Got NTLMSSP neg_flags=0x60890215
[2004/01/19 17:59:08, 3]
libsmb/ntlmssp.c:ntlmssp_client_challenge(518)
  NTLMSSP: Set final flags:
[2004/01/19 17:59:08, 3]
libsmb/ntlmssp.c:debug_ntlmssp_flags(33)
  Got NTLMSSP neg_flags=0x60080215
Anonymous login successful
[2004/01/19 17:59:10, 1]
client/client.c:do_connect(2598)
  Domain=[MERRIT] OS=[Windows 5.0] Server=[Windows
2000 LAN Manager]
tree connect failed: NT_STATUS_ACCESS_DENIED

This is what I get without the -N OPTION:

smbclient //guelyb-2k-2/pool mypassword  -U GUELYB -d3
[2004/01/19 18:14:23, 3]
param/loadparm.c:lp_load(3926)
  lp_load: refreshing parameters
[2004/01/19 18:14:23, 3]
param/loadparm.c:init_globals(1303)
  Initialising global parameters
[2004/01/19 18:14:23, 3]
param/params.c:pm_process(566)
  params.c:pm_process() - Processing configuration
file "/etc/samba/smb.conf"
[2004/01/19 18:14:23, 3]
param/loadparm.c:do_section(3429)
  Processing section "[global]"
[2004/01/19 18:14:23, 2]
lib/interface.c:add_interface(79)
  added interface ip=192.168.1.102 bcast=192.168.1.255
nmask=255.255.255.0
[2004/01/19 18:14:23, 3] client/client.c:main(2954)
  Client started (version 3.0.0-15).
[2004/01/19 18:14:23, 3]
libsmb/namequery.c:resolve_lmhosts(850)
  resolve_lmhosts: Attempting lmhosts lookup for name
guelyb-2k-2<0x20>
[2004/01/19 18:14:23, 3]
lib/util_sock.c:open_socket_out(690)
  Connecting to 192.168.1.101 at port 445
[2004/01/19 18:14:23, 2]
libsmb/cliconnect.c:cli_session_setup_spnego(635)
  Doing spnego session setup (blob length=16)
[2004/01/19 18:14:23, 3]
libsmb/cliconnect.c:cli_session_setup_spnego(639)
  server didn't supply a full spnego negprot
[2004/01/19 18:14:24, 3]
libsmb/ntlmssp.c:ntlmssp_client_challenge(469)
  Got challenge flags:
[2004/01/19 18:14:24, 3]
libsmb/ntlmssp.c:debug_ntlmssp_flags(33)
  Got NTLMSSP neg_flags=0x60890215
[2004/01/19 18:14:24, 3]
libsmb/ntlmssp.c:ntlmssp_client_challenge(518)
  NTLMSSP: Set final flags:
[2004/01/19 18:14:24, 3]
libsmb/ntlmssp.c:debug_ntlmssp_flags(33)
  Got NTLMSSP neg_flags=0x60080215
session setup failed: NT_STATUS_LOGON_FAILURE

Any help you can offer will be GREATLY appreciated.


More information about the samba mailing list