Tree connect failed: ERRSRV - ERRbadpw

Urban Widmark urban at svenskatest.se
Mon Oct 4 09:08:53 GMT 1999


On Mon, 4 Oct 1999, Jens Rieck wrote:

> I have Samba 2.0.5a running on SuSE Linux 6.0 (2.0.36) and
> Windows NT Server 4.0 SP4 (PDC).
> 
> When I try to do a "smbclient -L MYUNIX" (according to the trouble
> shooting guide) I get the following message:
> 
> Addes interface ip=195.90.254.xxx bcast=195.90.254.255 nmask=255.255.255.0
> Password:
> Domain=[MYDOMAIN] OS=[Unix] Server=[Samba 2.0.5a]
> tree connect failed: ERRSRV - ERRbadpw (Bad password - name/password pair in
> a Tree Connect or Session Setup are invalied.)
> 
> I added my Linux machine to the NT Domain, and even if I try
> to do "smbclient -L MYUNIX -U myuser" and enter the correct
> password, I get this error message. But if I do "smbclient
> -L MYWINNT -U myuser", I get the list of shares on the NT
> machine. "myuser" is a regular user in Linux.
> 
> What can be the reason of this? Any idea?

Try: smbclient -L MYUNIX -N
For me that always works when asking a samba server, and almost never to a
NT machine. I have no idea why (but when it becomes important to me maybe
I'll go find out why :)


Samba uses the PDC to check valid usernames (& passwords) when security is
set to domain. At least that is what my little test shows:

cola:~/tmp>smbclient -L server -Ulocal_server_user
Password: <local_password>
session setup failed: ERRSRV - ERRbadpw
cola:~/tmp>smbclient -L server -Uadministrator
Password: <domain password>

        Sharename      Type      Comment
...

/Urban



More information about the samba mailing list