users for Christian Barth's problem

Thomas, Daniel J. Daniel.Thomas at jhuapl.edu
Mon Jan 14 06:08:29 GMT 2002


Chris,
I see one possible problem.  If you have a drive mapping in lmhosts, it is
going to require a password for each connection in order to establish the
map.  So if you have

net use \\servername\share /user:paul
net use \\###.###.###.###\share /user:paul2

Then if you log in a paul you will be missing the PW for paul2 and vise
versa.

If you set paul as no password or paul2 as no password then they will
connect, however you loose your security.  

Are you in a Domain setup?
Could you alternatively have paul change his password on the paul account
and create a group for all the users that need access to paul files?  You
could then assign group rights to the specific paul shares that other users
need.  I'm a MS admin first and Samba second, so I'm not as familiar with
Unix file sharing.  In the NT world I can assign multiple users to the same
share w/ out having to create a group.  I don't know if you can do this with
the samba shares, but you set up paul2 as the user that other people use to
get to specific files and user paul can change his password and distribute
the password for paul2.  Note that if at all possible, a group creation for
all users that need "paul" access would be better as you can then trace by
user ID anyone who makes any changes to paul's files or folders
(accountability).  Otherwise there is real audit trail to anything done on
the paul account (though I have a similar problem in my labs that go above
me to an administrative decision)
-Dan





From: "Christian Barth" <barth at cck.uni-kl.de>
To: Chris Bourne <cbourne at xapnet.com>
Date: Sun, 13 Jan 2002 16:50:15 +0100
Subject: Re: users
Cc: samba at samba.org

> Christian Barth wrote:
> 
> > > Hello,
> > >          I have a windows 2000 user who is say logged in as user paul
> > > with password sunny and has access to certain samba shares on a linux
> > > server. Most people in the office knows paul password for whatever
> > > reason but paul wants to have his own private share only accessable to
> > > him with a password that he only knows. So I set up another user on
the
> > > linux box called paul2 with a new password. Paul now tries to access
the
> > > private share logged in as paul on his windows machine and gets
prompted
> > > for a username and password. So paul types in paul2 and the new
password
> > > and gets the message "the credentials supplied conflicts with an
> > > existing set of credentials". I need paul logged in as paul on the
> > > windows machine to have access to paul2 stuff without having to create
a
> > > new user or log out of paul on the windows machine. Please help,
Chris.
> > I know this problem from NT:
> > NT can only connect to one server as one user at a time, not samba
> > issiue. But If paul connects to "server" and paul2 connects to
> > "nummeric IP of the server" (for example "\\123.246.678.901\paul2")
> > than NT thinks it is takling to two servers and it works.
> >
> > Christian

> I thank you for your quick response. I am still not getting this to work.
> This is what I did. I edited the lmhosts file on the windows 2000 box and
put
> in the lines
> 
> net use \\servername\share1 /user:paul
> net use \\192.168.1.1\share2 /user:paul2
> 
> I also created the user paul2 on the windows 2000 box as well(is this
> needed?) Now logged in as paul I tried to access share2 and was prompted
for
> a user and passwd and entered paul2 and the passwd and still no luck. Is
> there something I did wrong or did not do? Thanks, Chris.

First: Please answer to the whole list, there are a couple of 
helpfull guys.

I guess the error message has changed and you now get "wrong 
password"? What have you changed in the lmhosts file. Leave it empty 
if you do not have browsing problems. User paul2 should not be needed 
on the w2k box, but on the sambe server. Have you set him up 
correctly? Can you connect with his name and password when there is 
no other connection? What happens if you do:

net use \\server\share1 /user:paul
net use \\192.168.1.1\share1 /user:chris

??

Christian


_________________________________________________________________
In a world without walls and fences, who needs windows and gates?




More information about the samba mailing list