[Samba] NT_STATUS_ACCESS_DENIED with smbclient

Arkadiusz Miskiewicz arekm at pld-linux.org
Sun Nov 17 12:48:01 GMT 2002


Hi,

the problem is that when doing smbclient -L user I'm getting
NT_STATUS_ACCESS_DENIED. ,,user'' is using win xp and I can view
his shares from other _windows_ computer but not with smbclient.
Any ideas why?

[misiek at arm ~]$ smbclient -L lookas -d4
Serverzone is -3600
Initialising global parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter netbios name = ARM
handle_netbios_name: set global_myname to: ARM
doing parameter workgroup = PIAST
doing parameter server string = PLD Linux
doing parameter ssl = no
doing parameter hosts allow = 127. 192.168.0. 10. 156.
doing parameter load printers = no
doing parameter log file = /var/log/samba/log
doing parameter max log size = 50
doing parameter security = share
doing parameter encrypt passwords = yes
doing parameter smb passwd file = /etc/samba/smbpasswd
doing parameter unix password sync = Yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
doing parameter socket options = SO_SNDBUF=2048 SO_RCVBUF=2048 TCP_NODELAY
doing parameter read size = 1024
doing parameter local master = no
doing parameter os level = 2
doing parameter name resolve order = wins lmhosts bcast
doing parameter dns proxy = no
doing parameter message command = /bin/sh -c '/usr/bin/play /usr/share/centericq/email.wav; cat %s | recode -f CP1250..ISO8859-2 | /bin/mail -s "winpopup from %f@%m to %t" misiek ; /bin/rm "%s" ' &
doing parameter syslog = 1
doing parameter character set = iso8859-2
doing parameter client code page = 852
pm_process() returned Yes
added interface ip=156.17.236.105 bcast=156.17.237.255 nmask=255.255.254.0
added interface ip=192.168.0.1 bcast=192.168.1.255 nmask=255.255.254.0
added interface ip=192.168.185.1 bcast=192.168.185.255 nmask=255.255.255.0
Client started (version 2.2.6).
resolve_wins: Attempting wins lookup for name lookas<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_lmhosts: Attempting lmhosts lookup for name lookas<0x20>
startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was Permission denied
name_resolve_bcast: Attempting broadcast lookup for name lookas<0x20>
bind succeeded on port 0
nmb packet from 156.17.236.120(137) header: id=26333 opcode=Query(0) response=Yes
    header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes
    header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
    answers: nmb_name=LOOKAS<20> rr_type=32 rr_class=1 ttl=300000
    answers   0 char `....x   hex 60009C11EC78
Got a positive name query response from 156.17.236.120 ( 156.17.236.120 )
Connecting to 156.17.236.120 at port 139
 session request ok
Password: 
Anonymous login successful
Domain=[PIAST] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
 session setup ok
 tconx ok

        Sharename      Type      Comment
        ---------      ----      -------
NetShareEnum failed
Error returning browse list: NT_STATUS_ACCESS_DENIED

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------

-- 
Arkadiusz Miśkiewicz    CS at FoE, Wroclaw University of Technology
arekm at sse.pl   AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux



More information about the samba mailing list