Samba problem, can't connect as a different user

Les Mikesell lesmikesell at gmail.com
Sun Mar 23 22:57:20 UTC 2008


Craig White wrote:
> On Sun, 2008-03-23 at 14:27 -0500, Mikkel L. Ellertson wrote:
>> Chris G wrote:
>>> On Sun, Mar 23, 2008 at 11:01:02AM -0700, Craig White wrote:
>>>> samba by default uses
>>>>
>>>> security = user
>>>>
>>>> which by current Windows standards means that a workstation can connect
>>>> to this particular server with only 1 identity. Thus if you are already
>>>> connected to a share as DOMAIN|WORKGROUP\foo, you cannot connect to a
>>>> different share as DOMAIN|WORKGROUP\bar
>>>>
>>>> the 'security = share' concept emulates the Windows 95/98 sharing
>>>> concept where each share connection can be a different user but that is
>>>> essentially obsolete and should be avoided if possible.
>>>>
>>> Yes, I suspect that's my problem, what a pain!
>>>
>>> I seem to remember there's a way to tell samba that I want user X to
>>> connect to a particular share as user Y, I guess (if there is such a
>>> thing and my memory isn't playing tricks) that's what I'd better do.
>>>
>> You can set up a share to always use a specific Linux User/Group by 
>> using the "force user" and "force group" options.
> ----
> that sort of changes things at the server end which may be useful to him
> but wasn't responsive to his question which was that he wants to 'log
> in' as different users to different shares from the same server.
> 

He already had the way to have logins per share instead of per 
connection above.  You can combine force user/group with allowed users 
to let your connection authenticate as a user in a permitted set but for 
the specified share use a different uid/gid.

-- 
   Les Mikesell
    lesmikesell at gmail.com




More information about the users mailing list