John Tyner
2002-Dec-26 19:45 UTC
[Samba] smbclient thinks passwordless account is anonymous
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? Thanks, John
Joel Hammer
2002-Dec-26 22:46 UTC
[Samba] smbclient thinks passwordless account is anonymous
Read about guest logins. Joel On Thu, Dec 26, 2002 at 11:43:58AM -0800, 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? > > Thanks, > John > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
John Tyner
2002-Dec-27 06:08 UTC
[Samba] smbclient thinks passwordless account is anonymous
I want to connect _from_ the linux box _to_ the windows box. I think the problem is in smbclient, not samba itself. John On Thu, Dec 26, 2002 at 11:46:12PM -0500, Joel Hammer wrote:> Try man smb.conf > > It explains how to set up the samba server to assign a user name to a logon with > no password. > eg. > > [global] > guest account = ftp > > [cdrom1] > comment = CDROM1 > path = /mnt/cdrom1 > guest ok = yes > > guest account can be any valid user, like root. This gets rid of all those > pesky permissions problems. > > Joel > >
Gerald (Jerry) Carter
2003-Jan-02 19:21 UTC
[Samba] smbclient thinks passwordless account is anonymous
-----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. cheers, jerry ---------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc ISBN 0-672-32269-2 "SAMS Teach Yourself Samba in 24 Hours" 2ed "You can never go home again, Oatman, but I guess you can shop there." --John Cusack - "Grosse Point Blank" (1997) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE+FJDuIR7qMdg1EfYRArzxAJ0flvZhhbPa0rEODkp9ZMNEy61x8ACfQT+4 H+lK+2VFxazqFoRXE6BY1gI=ci2b -----END PGP SIGNATURE-----
Ken Walker
2003-Jan-10 17:45 UTC
[Samba] smbclient thinks passwordless account is anonymous
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@lists.samba.org [mailto:samba-admin@lists.samba.org]On Behalf Of jra@dp.samba.org Sent: 04 January 2003 1:33 AM To: Gerald (Jerry) Carter Cc: John Tyner; samba@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