Re: [Samba] smbclient thinks passwordless account is anonymous

2003-01-10 Thread John Tyner
> > 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%""

Here is the output:

$ smbclient -L refresco -Ujohn%""
added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0
Anonymous login successful
Domain=[COOL] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename  Type  Comment
-    ---
Error returning browse list: NT_STATUS_ACCESS_DENIED

Server   Comment
----

WorkgroupMaster
----

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



RE: [Samba] smbclient thinks passwordless account is anonymous

2003-01-10 Thread Ken Walker
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of [EMAIL PROTECTED]
Sent: 04 January 2003 1:33 AM
To: Gerald (Jerry) Carter
Cc: John Tyner; [EMAIL PROTECTED]
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
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] smbclient thinks passwordless account is anonymous

2003-01-03 Thread jra
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



Re: [Samba] smbclient thinks passwordless account is anonymous

2003-01-02 Thread Gerald (Jerry) Carter
-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-

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] smbclient thinks passwordless account is anonymous

2002-12-27 Thread John Tyner
On Fri, Dec 27, 2002 at 08:03:40AM -0500, Joel Hammer wrote:
> Hmmm...
> 
> I don't know much about windows. The problem likely lies in the windows
> server, methinks. smbclient is taking the user personality provided by the
> windows server, no?

I don't think so, but...

What's happening is, I'm using smbclient to connect from the linux machine to the 
windows 
machine. The account on the windows machine has no password. When I try to connect 
using 
that account, then it fails, and smbclient prints something about an anonymous login 
succeeding. However, if I give the account a password and try to connect, it works... 
no 
message about anonymous logon.

On the surface, it _seems_ that smbclient maps an account with no password to an 
anonymous 
user. I suspect that that's probably not the case, but I'm hoping someone can tell me 
what 
the expected/intended behavior in this situation is and even how to correct it if it 
is 
indeed a problem.

> I lost your first post. But, does your version of windows (98, for example),
> have much of a concept of "user".

I'll let you make that call. :) It's XP.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] smbclient thinks passwordless account is anonymous

2002-12-27 Thread Joel Hammer
Hmmm...

I don't know much about windows. The problem likely lies in the windows
server, methinks. smbclient is taking the user personality provided by the
windows server, no?

I lost your first post. But, does your version of windows (98, for example),
have much of a concept of "user".

Joel

On Thu, Dec 26, 2002 at 10:07:22PM -0800, John Tyner wrote:
> 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
> > 
> > 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] smbclient thinks passwordless account is anonymous

2002-12-26 Thread John Tyner
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
> 
> 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] smbclient thinks passwordless account is anonymous

2002-12-26 Thread Joel Hammer
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


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] smbclient thinks passwordless account is anonymous

2002-12-26 Thread John Tyner
I didn't find anything helpful there. I've checked the smbclient man 
page. The only time it mentions the guest account is under the -U option 
which says something to the effect that the guest account is used when 
the USER and LOGNAME environment variables are not present. I set these 
as well as trying some other suggestions found there (the PASSWD 
environment variable and the -A option), but without a password, 
smbclient treats the attempt as an anonymous login despite being given a 
different, valid username.

Any other ideas?

Thanks,
John

On Thu, Dec 26, 2002 at 05:45:17PM -0500, Joel Hammer wrote:
> 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
> 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] smbclient thinks passwordless account is anonymous

2002-12-26 Thread Joel Hammer
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
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba