smbclient can't connect to NT workstation "C$" share

Eric Sisler esisler at westminster.lib.co.us
Thu Mar 29 18:54:34 GMT 2001


At 12:03 PM 03/29/2001 -0600, Gerald Carter wrote:

>On Thu, 29 Mar 2001, Eric Sisler wrote:
>
> > What I wrote earlier about the locally created share is probably wrong
> > though.  I looked a bit more closely at how the local shares are
> > configured and it *appears* to me that they also authenticate against
> > the PDC as well.  Perhaps I've misconfigured something in smb.conf?
> > Domain logins from NT workstations are working so I'm not sure what I
> > might have missed.  I do have "security" set to "user" - should this
> > be "server" or "domain"?

>Try smbclient //ghost/c$ -U Adminstrator -W local_nachine

No dice:

[esisler at shaun esisler]$ smbclient //ghost/c$ -U Administrator -W shaun
added interface ip=198.243.2.206 bcast=198.243.2.255 nmask=255.255.255.0
Got a positive name query response from 198.243.2.200 ( 198.243.2.146 )
Password:
Domain=[RAT_GROUP] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
tree connect failed: ERRDOS - ERRnoaccess (Access denied.)

I've used "shaun" as the local machine name since it's the Linux server I'm 
ssh'ed into.  If I put in an incorrect password I get a different error 
message:

[esisler at shaun esisler]$ smbclient //ghost/c$ -U Administrator -W shaun
added interface ip=198.243.2.206 bcast=198.243.2.255 nmask=255.255.255.0
Got a positive name query response from 198.243.2.200 ( 198.243.2.146 )
Password:  *****WRONG PASSWORD TYPED HERE*****
session setup failed: ERRDOS - ERRnoaccess (Access denied.)

which would indicate at least the authentication part is happening.  If I 
leave the password blank I get a slightly different error message:

[esisler at shaun esisler]$ smbclient //ghost/c$ -U Administrator -W shaun
added interface ip=198.243.2.206 bcast=198.243.2.255 nmask=255.255.255.0
Got a positive name query response from 198.243.2.200 ( 198.243.2.146 )
Password:
Anonymous login successful
Domain=[RAT_GROUP] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
tree connect failed: ERRDOS - ERRnoaccess (Access denied.)

I even tried it by logging into the Linux box as "Administrator":

[Administrator at shaun Administrator]$ smbclient //ghost/c$ -W shaun
added interface ip=198.243.2.206 bcast=198.243.2.255 nmask=255.255.255.0
Got a positive name query response from 198.243.2.200 ( 198.243.2.146 )
Password:
Domain=[RAT_GROUP] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
tree connect failed: ERRDOS - ERRnoaccess (Access denied.)

"Administrator" is mapped to "ntwsadm" in /etc/smbusers, but I get the same 
result when I try the "ntwsadm" account.

In each case except the wrong password one I get the "tree connect failed" 
message.  I can't even connect from one NT workstation to another's C$ 
share.  In fact, "net view \\ghost" doesn't even list the "default" shares 
of C$ and D$, although smbclient does.  Is there something strange about 
the default shares that only work if there's a real NT PDC on the network?

-Eric

Eric Sisler
Library Computer Technician
Westminster Public Library
Westminster, CO, USA
esisler at westminster.lib.co.us

Linux - don't fear the Penguin.
Want to know what we use Linux for?
Visit http://gromit.westminster.lib.co.us/linux





More information about the samba mailing list