[Samba] smbclient thinks passwordless account is anonymous
Ken Walker
ken.walker at textiles.umist.ac.uk
Fri Jan 10 17:45:01 GMT 2003
set-up an account on the Linux machine,
Then put
null passwords = yes
in the smb.conf file ( the global section)
then do a
smbpasswd -an username
which will create a samba account with no password ( or a null password ).
When the user logs on it will use his machine username should be seen in
smbstatus
hope that helps
Ken
-----Original Message-----
From: samba-admin at lists.samba.org [mailto:samba-admin at lists.samba.org]On
Behalf Of jra at dp.samba.org
Sent: 04 January 2003 1:33 AM
To: Gerald (Jerry) Carter
Cc: John Tyner; samba at lists.samba.org
Subject: Re: [Samba] smbclient thinks passwordless account is anonymous
On Thu, Jan 02, 2003 at 01:20:13PM -0600, Gerald (Jerry) Carter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> 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
try
smbclient -L host -Uname%""
instead. If the password is not supplied then smbclient will always
try again with an anonymous request.
Jeremy.
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba
mailing list