smbclient -L
Wade Burgett
wadeb at burgettsys.com
Thu Apr 6 04:18:24 GMT 2000
I have a samba 2.0.6 server. It's running domain security with NT
4.0 Sp 5 as a PDC. That all works great.
When I run smbclient -L against 95,98,or other samba servers I get a
list of shares. However against NT4.0 (workstation and server) I get no
share listing at all. I can retrieve browse lists. I am suspcious here
of needing to guest account something somewhere (local NT domain maybe?)
but so far all of my expiriments have failed.
The only error I can really identify is a "NetShareEnum failed" when
I have the debug level high enough.
If I use a password with the username (which is a vaild domain
username/password) then I get access denied. If I use no password,
regardless of usename then I get a listing, just no info about shares.
This makes sense with what I know about guest accounts and share
listings, but maybe there is a clue here I am overlooking.
Thanks.
Output follows:
###############
DEBUG LEVEL 3
###############
smbclient -L beckyw -d 3
added interface ip=192.42.172.4 bcast=192.42.172.255 nmask=255.255.255.0
added interface ip=10.0.0.3 bcast=10.0.0.255 nmask=255.255.255.0
Client started (version 2.0.6).
resolve_lmhosts: Attempting lmhosts lookup for name beckyw<0x20>
resolve_hosts: Attempting host lookup for name beckyw<0x20>
Connecting to 192.42.172.94 at port 139
Password:
Domain=[AP] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
Sharename Type Comment
--------- ---- -------
Server Comment
--------- -------
Workgroup Master
--------- -------
###################
DEBUG LEVEL 6
##################
~/t$ smbclient -L beckyw -d 6
added interface ip=192.42.172.4 bcast=192.42.172.255 nmask=255.255.255.0
added interface ip=10.0.0.3 bcast=10.0.0.255 nmask=255.255.255.0
Client started (version 2.0.6).
resolve_lmhosts: Attempting lmhosts lookup for name beckyw<0x20>
startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was No
such file or directory
resolve_hosts: Attempting host lookup for name beckyw<0x20>
Connecting to 192.42.172.94 at port 139
write_socket(3,76)
write_socket(3,76) wrote 76
Sent session request
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(3,168)
write_socket(3,168) wrote 168
size=83
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=29333
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[0]=7 (0x7)
smb_vwv[1]=12803 (0x3203)
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]=67 (0x43)
smb_vwv[11]=20480 (0x5000)
smb_vwv[12]=23149 (0x5A6D)
smb_vwv[13]=32408 (0x7E98)
smb_vwv[14]=49055 (0xBF9F)
smb_vwv[15]=41985 (0xA401)
smb_vwv[16]=2049 (0x801)
smb_bcc=14
size=83
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=29333
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[0]=7 (0x7)
smb_vwv[1]=12803 (0x3203)
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]=67 (0x43)
smb_vwv[11]=20480 (0x5000)
smb_vwv[12]=23149 (0x5A6D)
smb_vwv[13]=32408 (0x7E98)
smb_vwv[14]=49055 (0xBF9F)
smb_vwv[15]=41985 (0xA401)
smb_vwv[16]=2049 (0x801)
smb_bcc=14
Password:
write_socket(3,80)
write_socket(3,80) wrote 80
size=78
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=29333
smb_uid=2048
smb_mid=1
smt_wct=3
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=78 (0x4E)
smb_vwv[2]=0 (0x0)
smb_bcc=37
size=78
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=0
smb_pid=29333
smb_uid=2048
smb_mid=1
smt_wct=3
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=78 (0x4E)
smb_vwv[2]=0 (0x0)
smb_bcc=37
Domain=[AP] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
session setup ok
write_socket(3,68)
write_socket(3,68) wrote 68
size=46
smb_com=0x75
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=2048
smb_pid=29333
smb_uid=2048
smb_mid=1
smt_wct=3
smb_vwv[0]=255 (0xFF)
smb_vwv[1]=46 (0x2E)
smb_vwv[2]=1 (0x1)
smb_bcc=5
tconx ok
Sharename Type Comment
--------- ---- -------
size=95
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=1
smb_tid=2048
smb_pid=29333
smb_uid=2048
smb_mid=1
smt_wct=14
smb_vwv[0]=19 (0x13)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=1024 (0x400)
smb_vwv[3]=65535 (0xFFFF)
smb_vwv[4]=0 (0x0)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=0 (0x0)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=19 (0x13)
smb_vwv[10]=76 (0x4C)
smb_vwv[11]=0 (0x0)
smb_vwv[12]=95 (0x5F)
smb_vwv[13]=0 (0x0)
smb_bcc=32
write_socket(3,99)
write_socket(3,99) wrote 99
size=35
smb_com=0x25
smb_rcls=1
smb_reh=0
smb_err=5
smb_flg=136
smb_flg2=1
smb_tid=2048
smb_pid=29333
smb_uid=2048
smb_mid=1
smt_wct=0
smb_bcc=0
size=35
smb_com=0x25
smb_rcls=1
smb_reh=0
smb_err=5
smb_flg=136
smb_flg2=1
smb_tid=2048
smb_pid=29333
smb_uid=2048
smb_mid=1
smt_wct=0
smb_bcc=0
NetShareEnum failed
Server Comment
--------- -------
size=105
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=1
smb_tid=2048
smb_pid=29333
smb_uid=2048
smb_mid=1
smt_wct=14
smb_vwv[0]=29 (0x1D)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=8 (0x8)
smb_vwv[3]=65535 (0xFFFF)
smb_vwv[4]=0 (0x0)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=0 (0x0)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=29 (0x1D)
smb_vwv[10]=76 (0x4C)
smb_vwv[11]=0 (0x0)
smb_vwv[12]=105 (0x69)
smb_vwv[13]=0 (0x0)
smb_bcc=42
write_socket(3,109)
write_socket(3,109) wrote 109
size=64
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=2048
smb_pid=29333
smb_uid=2048
smb_mid=1
smt_wct=10
smb_vwv[0]=8 (0x8)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=8 (0x8)
smb_vwv[4]=56 (0x38)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=64 (0x40)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=9
size=64
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=2048
smb_pid=29333
smb_uid=2048
smb_mid=1
smt_wct=10
smb_vwv[0]=8 (0x8)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=8 (0x8)
smb_vwv[4]=56 (0x38)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=64 (0x40)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=9
Realloc asked for 0 bytes
Workgroup Master
--------- -------
size=105
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=8
smb_flg2=1
smb_tid=2048
smb_pid=29333
smb_uid=2048
smb_mid=1
smt_wct=14
smb_vwv[0]=29 (0x1D)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=8 (0x8)
smb_vwv[3]=65535 (0xFFFF)
smb_vwv[4]=0 (0x0)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=0 (0x0)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=29 (0x1D)
smb_vwv[10]=76 (0x4C)
smb_vwv[11]=0 (0x0)
smb_vwv[12]=105 (0x69)
smb_vwv[13]=0 (0x0)
smb_bcc=42
write_socket(3,109)
write_socket(3,109) wrote 109
size=64
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=2048
smb_pid=29333
smb_uid=2048
smb_mid=1
smt_wct=10
smb_vwv[0]=8 (0x8)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=8 (0x8)
smb_vwv[4]=56 (0x38)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=64 (0x40)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=9
size=64
smb_com=0x25
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=2048
smb_pid=29333
smb_uid=2048
smb_mid=1
smt_wct=10
smb_vwv[0]=8 (0x8)
smb_vwv[1]=0 (0x0)
smb_vwv[2]=0 (0x0)
smb_vwv[3]=8 (0x8)
smb_vwv[4]=56 (0x38)
smb_vwv[5]=0 (0x0)
smb_vwv[6]=0 (0x0)
smb_vwv[7]=64 (0x40)
smb_vwv[8]=0 (0x0)
smb_vwv[9]=0 (0x0)
smb_bcc=9
Realloc asked for 0 bytes
--
Wade Burgett
http://www.burgettsys.com
More information about the samba
mailing list