smbclient cannot find local users on windows xp !

giuseppe furlan giuseppe.furlan at hotmail.com
Wed Jun 6 13:40:14 GMT 2007


hi guys,

I am using smbclient Version 3.0.10 and
Redhat Enterprise 4 on a linux machine called "c4dev".

I have created a local user called "c4dev" on my XP machine
and shared a folder with access to "Everyone".

Windows XP Hostname : Spare110-lt    IP address : 172.18.96.166
Samba server address Hostname : c4dev  IP address : 172.18.96.167

Both machines are in the same workgroup called "IOKO365".

When I try to access shared on Windows XP folder  I got this :

[root at c4dev ~]# smbclient -d 10 -L Spare110-lt -U \\SPARE110-LT\\c4dev
INFO: Current debug levels:
  all: True/10
  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
  quota: False/0
  acls: False/0
lp_load: refreshing parameters
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = IOKO365
doing parameter netbios name = C4DEV
handle_netbios_name: set global_myname to: C4DEV
doing parameter server string = Samba Server
doing parameter hosts allow = 172.18.96. 127.
doing parameter client use spnego = no
doing parameter printcap name = /etc/printcap
doing parameter load printers = yes
doing parameter log file = /var/log/samba/%m.log
doing parameter max log size = 50
doing parameter security = user
doing parameter smb passwd file = /etc/samba/smbpasswd
doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
doing parameter dns proxy = no
doing parameter idmap uid = 16777216-33554431
doing parameter idmap gid = 16777216-33554431
doing parameter template shell = /bin/false
doing parameter winbind use default domain = no
doing parameter disable spoolss = yes
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: role = ROLE_STANDALONE
Attempting to register new charset UCS-2LE
Registered charset UCS-2LE
Attempting to register new charset UTF-16LE
Registered charset UTF-16LE
Attempting to register new charset UCS-2BE
Registered charset UCS-2BE
Attempting to register new charset UTF-16BE
Registered charset UTF-16BE
Attempting to register new charset UTF8
Registered charset UTF8
Attempting to register new charset UTF-8
Registered charset UTF-8
Attempting to register new charset ASCII
Registered charset ASCII
Attempting to register new charset 646
Registered charset 646
Attempting to register new charset ISO-8859-1
Registered charset ISO-8859-1
Attempting to register new charset UCS2-HEX
Registered charset UCS2-HEX
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
added interface ip=172.18.96.167 bcast=172.18.111.255 nmask=255.255.240.0
Netbios name list:-
my_netbios_names[0]="C4DEV"
Client started (version 3.0.10-1.4E.9).
internal_resolve_name: looking up Spare110-lt#20
Opening cache file at /var/cache/samba/gencache.tdb
Returning expired cache entry: key = NBT/SPARE110-LT#20, value = 
172.18.96.166:0, timeout = Wed Jun  6 06:49:51 2007

no entry for Spare110-lt#20 found.
Deleting cache entry (key = NBT/SPARE110-LT#20)
resolve_lmhosts: Attempting lmhosts lookup for name Spare110-lt<0x20>
getlmhostsent: lmhost entry: 127.0.0.1 localhost
resolve_wins: Attempting wins lookup for name Spare110-lt<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name Spare110-lt<0x20>
remove_duplicate_addrs2: looking for duplicate address/port pairs
namecache_store: storing 1 address for Spare110-lt#20: 172.18.96.166:0
Adding cache entry with key = NBT/SPARE110-LT#20; value = 172.18.96.166:0 
and timeout = Wed Jun  6 07:13:51 2007
(660 seconds ahead)
internal_resolve_name: returning 1 addresses: 172.18.96.166:0
Connecting to 172.18.96.166 at port 445
error connecting to 172.18.96.166:445 (Connection refused)
Connecting to 172.18.96.166 at port 139
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 0
socket option SO_BROADCAST = 0
socket option TCP_NODELAY = 1
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 16384
socket option SO_RCVBUF = 16384
socket option SO_SNDLOWAT = 1
socket option SO_RCVLOWAT = 1
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
write_socket(4,72)
write_socket(4,72) wrote 72
Sent session request
got smb length of 0
size=0
smb_com=0x0
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=0
smb_flg2=0
smb_tid=0
smb_pid=0
smb_uid=0
smb_mid=0
smt_wct=0
smb_bcc=0
session request ok
write_socket(4,183)
write_socket(4,183) wrote 183
got smb length of 117
size=117
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=49153
smb_tid=0
smb_pid=13621
smb_uid=0
smb_mid=2
smt_wct=17
smb_vwv[ 0]=    8 (0x8)
smb_vwv[ 1]= 2563 (0xA03)
smb_vwv[ 2]=  256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]=   17 (0x11)
smb_vwv[ 5]=    0 (0x0)
smb_vwv[ 6]=  256 (0x100)
smb_vwv[ 7]=    0 (0x0)
smb_vwv[ 8]=    0 (0x0)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]=  227 (0xE3)
smb_vwv[11]=51712 (0xCA00)
smb_vwv[12]=63587 (0xF863)
smb_vwv[13]=15958 (0x3E56)
smb_vwv[14]=51112 (0xC7A8)
smb_vwv[15]=50177 (0xC401)
smb_vwv[16]= 2303 (0x8FF)
smb_bcc=48
[000] EE B5 DD 10 4D 64 49 2E  49 00 4F 00 4B 00 4F 00  ....MdI. I.O.K.O.
[010] 33 00 36 00 35 00 00 00  53 00 50 00 41 00 52 00  3.6.5... S.P.A.R.
[020] 45 00 31 00 31 00 30 00  2D 00 4C 00 54 00 00 00  E.1.1.0. -.L.T...
size=117
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=49153
smb_tid=0
smb_pid=13621
smb_uid=0
smb_mid=2
smt_wct=17
smb_vwv[ 0]=    8 (0x8)
smb_vwv[ 1]= 2563 (0xA03)
smb_vwv[ 2]=  256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]=   17 (0x11)
smb_vwv[ 5]=    0 (0x0)
smb_vwv[ 6]=  256 (0x100)
smb_vwv[ 7]=    0 (0x0)
smb_vwv[ 8]=    0 (0x0)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]=  227 (0xE3)
smb_vwv[11]=51712 (0xCA00)
smb_vwv[12]=63587 (0xF863)
smb_vwv[13]=15958 (0x3E56)
smb_vwv[14]=51112 (0xC7A8)
smb_vwv[15]=50177 (0xC401)
smb_vwv[16]= 2303 (0x8FF)
smb_bcc=48
[000] EE B5 DD 10 4D 64 49 2E  49 00 4F 00 4B 00 4F 00  ....MdI. I.O.K.O.
[010] 33 00 36 00 35 00 00 00  53 00 50 00 41 00 52 00  3.6.5... S.P.A.R.
[020] 45 00 31 00 31 00 30 00  2D 00 4C 00 54 00 00 00  E.1.1.0. -.L.T...
Serverzone is -3600
Password:
write_socket(4,174)
write_socket(4,174) wrote 174
got smb length of 35
size=35
smb_com=0x73
smb_rcls=109
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=49153
smb_tid=0
smb_pid=13621
smb_uid=0
smb_mid=3
smt_wct=0
smb_bcc=0
lang_tdb_init: loading /var/cache/samba/lang_en_GB.UTF-8.tdb
session setup failed: NT_STATUS_LOGON_FAILURE


If I check Windows XP log file then I can understand where is the problem :

Logon attempt by: MICROSOFT_AUTHENTICATION_PACKAGE_V1_0
Logon account:  SPARE110-LT\c4dev
Source Workstation: \\C4DEV
Error Code: 0xC0000064

Error Code: 0xC0000064 means the account does not exist !! but the account  
has been created locally so I'm sure that EXISTS !!


this is my smb.conf :

[global]

# workgroup = NT-Domain-Name or Workgroup-Name

   workgroup = IOKO365

netbios name = C4DEV

# server string is the equivalent of the NT Description field
   server string = Samba Server

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
;   hosts allow = 192.168.1. 192.168.2. 127.
hosts allow = 172.18.96. 127.

client use spnego = no

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   printcap name = /etc/printcap
   load printers = yes

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# all log information in one file
#   log file = /var/log/samba/smbd.log

# Put a capping on the size of the log files (in Kb).
   max log size = 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
# security_level.txt for details.
   security = user

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
#    encrypt passwords = yes
    smb passwd file = /etc/samba/smbpasswd

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
   dns proxy = no

#============================ Share Definitions 
==============================
   idmap uid = 16777216-33554431
   idmap gid = 16777216-33554431
   template shell = /bin/false
   winbind use default domain = no

   disable spoolss = yes

[tmp]
   comment = Temporary file space
   path = /tmp
   read only = no
   public = yes



Thanks in advance for any ideas
Joseph

_________________________________________________________________
Play your part in making history - Email Britain! 
http://www.emailbritain.co.uk/



More information about the smb-clients mailing list