Hi Brain,
This parameter is really only useful in share level security,
where a password is passed in the tconnX smb. In user level
security, you never get to this point, because you have to pass
thru the sessionsetup&x smb, which is going to pass a USERNAME
and PASSWORD to the server, and the server is either going to
validate it or NOT. if NOT (and smbclient without a -U will pass
the UNIX username that you are running it from), then you never
get to the point where a tconnX is done.
If you want to make sure (in userlevel security) that ONLY
mary or jack can access this share, you could use the
'valid users= mary,jack' instead under user level security.
This may all be moot, if you really are using share level security
(security = share in the global section of smb.conf); but since
you didn't show that part of the smb.conf, I'm making a guess here
that you are using the default of security=user...
Let me know if I'm off here!
Hope this helps,
Don
-----Original Message-----
From: brain@ghost.btnet.cz [mailto:brain@ghost.btnet.cz]
Sent: Tuesday, March 27, 2001 4:48 AM
To: samba@samba.org
Subject: username doesn't work
Hello.
I've got samba 2.0.6. My smb.conf file contains:
---------
[myhome]
comment = My Home
path = /home/myhome
username = mary, jack
read only = No
--------
When I run: smbclient '//mycomputer/myhome'
and type valid password for mary or jack.
The answer is:
--------
Password:
session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair
in a Tree
Connect or Session Setup are invalid.)
--------
When I specify user with e.g. "-U mary" everything goes well.
The documentation says:
--------
NOTE ABOUT USERNAME/PASSWORD VALIDATION
.
.
.
.
5. Step 5: If a "user = " field is given in the smb.conf file for
the
service and
the client has supplied a password, and that password matches
(according to the
UNIX system's password checking) with one of the usernames from the
user= field
then the connection is made as the username in the "user="
line. If
one of the
username in the user= list begins with a '@' then that name
expands
to a list of
names in the group of the same name.
--------
"guest user" is set to "no" (by default) so step 5 isn't
skipped.
"username" is an alias for "user", but I tried
"user" too and result is the
same.
smbclient '//mycomputer/myhome%jack' doesn't work too
So something's wrong. Please, can you help me?
Thanx.
--------------------------------
Petr `Brain' Kulhavy
<brain@artax.karlin.mff.cuni.cz>
http://artax.karlin.mff.cuni.cz/~brain
Faculty of Mathematics and Physics, Charles University Prague, Czech
Republic
---
George Orwell was an optimist.
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba