[Samba] smbclient thinks passwordless account is anonymous

jra at dp.samba.org jra at dp.samba.org
Sat Jan 4 01:33:01 GMT 2003

On Thu, Jan 02, 2003 at 01:20:13PM -0600, Gerald (Jerry) Carter wrote:
> Hash: SHA1
> On Thu, 26 Dec 2002, John Tyner wrote:
> > I want to use a passwordless account on my windows box to connect to 
> > from my linux box.
> > 
> > When I do a smbclient "" -L host -U name, smbclient always prints 
> > "Anonymous login successful" even though I supplied a username. If I 
> > supply a password on the command line instead, then I don't get the 
> > Anonymous login message. Neither way works since the account actually 
> > doesn't have a password, but if I set a password and use it with 
> > smbclient then everything works as expected.
> > 
> > It seems that if you don't supply smbclient with a password, then it 
> > assumes anonymous login regardless of whether or not the -U option was 
> > given. Is this the intended behavior or a bug?
> This sounds like our bug.  Do you have a patch?  If not, it will
> be al ittle while before I get caught up and can look into it.

I took a quick look at this. To use an account with no password

smbclient -L host -Uname%""

instead. If the password is not supplied then smbclient will always
try again with an anonymous request.


More information about the samba mailing list