* How to test multiusermount?
@ 2011-10-31 23:12 Stef Bon
[not found] ` <CANXojcwxf0aD=_18_6D6=WkG86F9Qx4PTf7F=2husGbASac6hA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Stef Bon @ 2011-10-31 23:12 UTC (permalink / raw)
To: linux-cifs
Hi,
I would like to test the multiusermounts?
I know to set:
echo 1 > /proc/fs/cifs/MultiuserMount
and add an option to the mount command, but I can remember/read somewhere
that one have to add some mapping somehwere:
local user : remote user
...
Is this correct?
Stef Bon
^ permalink raw reply [flat|nested] 10+ messages in thread[parent not found: <CANXojcwxf0aD=_18_6D6=WkG86F9Qx4PTf7F=2husGbASac6hA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: How to test multiusermount? [not found] ` <CANXojcwxf0aD=_18_6D6=WkG86F9Qx4PTf7F=2husGbASac6hA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2011-10-31 23:14 ` Steve French 2011-11-01 10:04 ` Jeff Layton 1 sibling, 0 replies; 10+ messages in thread From: Steve French @ 2011-10-31 23:14 UTC (permalink / raw) To: Stef Bon; +Cc: linux-cifs Jeff has a writeup that explains it more nicely but don't have the link in front of me. Note that it works best with Kerberos (sec=krb5 or sec=krb5i) On Mon, Oct 31, 2011 at 6:12 PM, Stef Bon <stefbon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Hi, > > I would like to test the multiusermounts? > > I know to set: > > echo 1 > /proc/fs/cifs/MultiuserMount > > and add an option to the mount command, but I can remember/read somewhere > that one have to add some mapping somehwere: > > local user : remote user > ... > > Is this correct? > > Stef Bon > -- > To unsubscribe from this list: send the line "unsubscribe linux-cifs" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Thanks, Steve ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to test multiusermount? [not found] ` <CANXojcwxf0aD=_18_6D6=WkG86F9Qx4PTf7F=2husGbASac6hA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2011-10-31 23:14 ` Steve French @ 2011-11-01 10:04 ` Jeff Layton [not found] ` <20111101060428.5d474bb9-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org> 1 sibling, 1 reply; 10+ messages in thread From: Jeff Layton @ 2011-11-01 10:04 UTC (permalink / raw) To: Stef Bon; +Cc: linux-cifs On Tue, 1 Nov 2011 00:12:21 +0100 Stef Bon <stefbon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Hi, > > I would like to test the multiusermounts? > > I know to set: > > echo 1 > /proc/fs/cifs/MultiuserMount > > and add an option to the mount command, but I can remember/read somewhere > that one have to add some mapping somehwere: > > local user : remote user > ... > > Is this correct? > No. The MultiuserMount code that the above switch activates is basically deprecated (and never worked very well in the first place). The correct way to do this is to use sec=krb5 and mount with '-o multiuser'. Then, make sure all users accessing the mount have a TGT. If you're using unix extensions (generally meaning that the remote server is samba-based), then having unity-mapped uids is helpful. -- Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <20111101060428.5d474bb9-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>]
* Re: How to test multiusermount? [not found] ` <20111101060428.5d474bb9-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org> @ 2011-11-02 15:56 ` Stef Bon [not found] ` <CANXojcx0=j-hLOEO3qQyx65C8mB4sQ6mLhT5AY9vPtwcko5HAQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2011-11-04 5:34 ` Suresh Jayaraman 1 sibling, 1 reply; 10+ messages in thread From: Stef Bon @ 2011-11-02 15:56 UTC (permalink / raw) To: Jeff Layton; +Cc: linux-cifs Hi, thanks, but what are unity mapped uids? Uids coming from a shared db like ldap and ads? Stef ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <CANXojcx0=j-hLOEO3qQyx65C8mB4sQ6mLhT5AY9vPtwcko5HAQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: How to test multiusermount? [not found] ` <CANXojcx0=j-hLOEO3qQyx65C8mB4sQ6mLhT5AY9vPtwcko5HAQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2011-11-02 19:08 ` Jeff Layton 0 siblings, 0 replies; 10+ messages in thread From: Jeff Layton @ 2011-11-02 19:08 UTC (permalink / raw) To: Stef Bon; +Cc: linux-cifs On Wed, 2 Nov 2011 16:56:05 +0100 Stef Bon <stefbon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Hi, > > thanks, > > but what are unity mapped uids? Uids coming from a shared db like ldap and ads? > That just means that the client and server need to have identically mapped uid/gid's. For instance, user1 on the client needs to have the same uid as user1 on the server. -- Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to test multiusermount? [not found] ` <20111101060428.5d474bb9-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org> 2011-11-02 15:56 ` Stef Bon @ 2011-11-04 5:34 ` Suresh Jayaraman [not found] ` <4EB37983.3080607-IBi9RG/b67k@public.gmane.org> 1 sibling, 1 reply; 10+ messages in thread From: Suresh Jayaraman @ 2011-11-04 5:34 UTC (permalink / raw) To: Jeff Layton; +Cc: Stef Bon, linux-cifs On 11/01/2011 03:34 PM, Jeff Layton wrote: > On Tue, 1 Nov 2011 00:12:21 +0100 > Stef Bon <stefbon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Hi, >> >> I would like to test the multiusermounts? >> >> I know to set: >> >> echo 1 > /proc/fs/cifs/MultiuserMount >> >> and add an option to the mount command, but I can remember/read somewhere >> that one have to add some mapping somehwere: >> >> local user : remote user >> ... >> >> Is this correct? >> > > No. The MultiuserMount code that the above switch activates is > basically deprecated (and never worked very well in the first place). So, time for planning its good riddance? > The correct way to do this is to use sec=krb5 and mount with '-o > multiuser'. Then, make sure all users accessing the mount have a TGT. > > If you're using unix extensions (generally meaning that the remote > server is samba-based), then having unity-mapped uids is helpful. > ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <4EB37983.3080607-IBi9RG/b67k@public.gmane.org>]
* Re: How to test multiusermount? [not found] ` <4EB37983.3080607-IBi9RG/b67k@public.gmane.org> @ 2011-11-04 5:56 ` Steve French 2011-11-04 14:02 ` Jeff Layton 0 siblings, 1 reply; 10+ messages in thread From: Steve French @ 2011-11-04 5:56 UTC (permalink / raw) To: Suresh Jayaraman; +Cc: Jeff Layton, Stef Bon, linux-cifs On Fri, Nov 4, 2011 at 12:34 AM, Suresh Jayaraman <sjayaraman-IBi9RG/b67k@public.gmane.org> wrote: > On 11/01/2011 03:34 PM, Jeff Layton wrote: >> On Tue, 1 Nov 2011 00:12:21 +0100 >> Stef Bon <stefbon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >>> Hi, >>> >>> I would like to test the multiusermounts? >>> >>> I know to set: >>> >>> echo 1 > /proc/fs/cifs/MultiuserMount >>> >>> and add an option to the mount command, but I can remember/read somewhere >>> that one have to add some mapping somehwere: >>> >>> local user : remote user >>> ... >>> >>> Is this correct? >>> >> >> No. The MultiuserMount code that the above switch activates is >> basically deprecated (and never worked very well in the first place). > > So, time for planning its good riddance? Mainly waiting for some way to have ntlmv2 enablement of multiuser mount (krb5 only is too restrictive). -- Thanks, Steve ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to test multiusermount? 2011-11-04 5:56 ` Steve French @ 2011-11-04 14:02 ` Jeff Layton [not found] ` <20111104100231.57ad94d6-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Jeff Layton @ 2011-11-04 14:02 UTC (permalink / raw) To: Steve French; +Cc: Suresh Jayaraman, Stef Bon, linux-cifs On Fri, 4 Nov 2011 00:56:16 -0500 Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > On Fri, Nov 4, 2011 at 12:34 AM, Suresh Jayaraman <sjayaraman-WDPRK7U/wSs@public.gmane.orgm> wrote: > > On 11/01/2011 03:34 PM, Jeff Layton wrote: > >> On Tue, 1 Nov 2011 00:12:21 +0100 > >> Stef Bon <stefbon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> > >>> Hi, > >>> > >>> I would like to test the multiusermounts? > >>> > >>> I know to set: > >>> > >>> echo 1 > /proc/fs/cifs/MultiuserMount > >>> > >>> and add an option to the mount command, but I can remember/read somewhere > >>> that one have to add some mapping somehwere: > >>> > >>> local user : remote user > >>> ... > >>> > >>> Is this correct? > >>> > >> > >> No. The MultiuserMount code that the above switch activates is > >> basically deprecated (and never worked very well in the first place). > > > > So, time for planning its good riddance? > > Mainly waiting for some way to have ntlmv2 enablement of multiuser > mount (krb5 only is too restrictive). > Right. The new multiuser code only works with krb5 so far. I think in order to deprecate the old code, we need to do the following: 1) the cifscreds program in cifs-utils will need to be cleaned up and completed. This would allow users to stash their NTLM creds in the kernel's keyring. This includes username and password, and some info about which creds should be used with which servers (or NT domains). The existing format for stashing those creds is probably not what we need so this is a bit of work and redesign I think. 2) code will need to be added to the kernel to fetch NTLM auth info out of the kernel keyring for establishing new sessions. 3) better documentation for multiuser mounts. This is always an issue, but multiuser is more complicated so we'll really need this. At that point, I think we can schedule the old multiuser code for deprecation. -- Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <20111104100231.57ad94d6-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>]
* Re: How to test multiusermount? [not found] ` <20111104100231.57ad94d6-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org> @ 2011-11-04 16:25 ` Steve French [not found] ` <CAH2r5muM1_pftwtc=C29-jV5HC-SrwCanmEFPwkDxQpyO6f=rg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Steve French @ 2011-11-04 16:25 UTC (permalink / raw) To: Jeff Layton; +Cc: Suresh Jayaraman, Stef Bon, linux-cifs, David Howells On Fri, Nov 4, 2011 at 9:02 AM, Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> wrote: > On Fri, 4 Nov 2011 00:56:16 -0500 > Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> On Fri, Nov 4, 2011 at 12:34 AM, Suresh Jayaraman <sjayaraman@suse.com> wrote: >> > On 11/01/2011 03:34 PM, Jeff Layton wrote: >> >> On Tue, 1 Nov 2011 00:12:21 +0100 >> >> Stef Bon <stefbon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> >> >>> Hi, >> >>> >> >>> I would like to test the multiusermounts? >> >>> >> >>> I know to set: >> >>> >> >>> echo 1 > /proc/fs/cifs/MultiuserMount >> >>> >> >>> and add an option to the mount command, but I can remember/read somewhere >> >>> that one have to add some mapping somehwere: >> >>> >> >>> local user : remote user >> >>> ... >> >>> >> >>> Is this correct? >> >>> >> >> >> >> No. The MultiuserMount code that the above switch activates is >> >> basically deprecated (and never worked very well in the first place). >> > >> > So, time for planning its good riddance? >> >> Mainly waiting for some way to have ntlmv2 enablement of multiuser >> mount (krb5 only is too restrictive). >> > > Right. The new multiuser code only works with krb5 so far. I > think in order to deprecate the old code, we need to do the following: > > 1) the cifscreds program in cifs-utils will need to be cleaned up and > completed. This would allow users to stash their NTLM creds in the > kernel's keyring. This includes username and password, and some info > about which creds should be used with which servers (or NT domains). > The existing format for stashing those creds is probably not what we > need so this is a bit of work and redesign I think. > > 2) code will need to be added to the kernel to fetch NTLM auth info out > of the kernel keyring for establishing new sessions. > > 3) better documentation for multiuser mounts. This is always an issue, > but multiuser is more complicated so we'll really need this. > > At that point, I think we can schedule the old multiuser code for > deprecation. Yes. Also note probable need for optional winbind integration to fetch creds (or winbind -> kernel keyring tie so we can get at these creds as needed) -- Thanks, Steve ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <CAH2r5muM1_pftwtc=C29-jV5HC-SrwCanmEFPwkDxQpyO6f=rg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: How to test multiusermount? [not found] ` <CAH2r5muM1_pftwtc=C29-jV5HC-SrwCanmEFPwkDxQpyO6f=rg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2011-11-05 0:46 ` Jeff Layton 0 siblings, 0 replies; 10+ messages in thread From: Jeff Layton @ 2011-11-05 0:46 UTC (permalink / raw) To: Steve French; +Cc: Suresh Jayaraman, Stef Bon, linux-cifs, David Howells On Fri, 4 Nov 2011 11:25:43 -0500 Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > On Fri, Nov 4, 2011 at 9:02 AM, Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> wrote: > > On Fri, 4 Nov 2011 00:56:16 -0500 > > Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > >> On Fri, Nov 4, 2011 at 12:34 AM, Suresh Jayaraman <sjayaraman@suse.com> wrote: > >> > On 11/01/2011 03:34 PM, Jeff Layton wrote: > >> >> On Tue, 1 Nov 2011 00:12:21 +0100 > >> >> Stef Bon <stefbon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> >> > >> >>> Hi, > >> >>> > >> >>> I would like to test the multiusermounts? > >> >>> > >> >>> I know to set: > >> >>> > >> >>> echo 1 > /proc/fs/cifs/MultiuserMount > >> >>> > >> >>> and add an option to the mount command, but I can remember/read somewhere > >> >>> that one have to add some mapping somehwere: > >> >>> > >> >>> local user : remote user > >> >>> ... > >> >>> > >> >>> Is this correct? > >> >>> > >> >> > >> >> No. The MultiuserMount code that the above switch activates is > >> >> basically deprecated (and never worked very well in the first place). > >> > > >> > So, time for planning its good riddance? > >> > >> Mainly waiting for some way to have ntlmv2 enablement of multiuser > >> mount (krb5 only is too restrictive). > >> > > > > Right. The new multiuser code only works with krb5 so far. I > > think in order to deprecate the old code, we need to do the following: > > > > 1) the cifscreds program in cifs-utils will need to be cleaned up and > > completed. This would allow users to stash their NTLM creds in the > > kernel's keyring. This includes username and password, and some info > > about which creds should be used with which servers (or NT domains). > > The existing format for stashing those creds is probably not what we > > need so this is a bit of work and redesign I think. > > > > 2) code will need to be added to the kernel to fetch NTLM auth info out > > of the kernel keyring for establishing new sessions. > > > > 3) better documentation for multiuser mounts. This is always an issue, > > but multiuser is more complicated so we'll really need this. > > > > At that point, I think we can schedule the old multiuser code for > > deprecation. > > Yes. Also note probable need for optional winbind integration > to fetch creds (or winbind -> kernel keyring tie so we can get > at these creds as needed) > That's a nice-to-have, and something that can be added after we have basic support for NTLM credential stashing in the kernel. Cheers, -- Jeff Layton <jlayton-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org> ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-11-05 0:46 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-31 23:12 How to test multiusermount? Stef Bon
[not found] ` <CANXojcwxf0aD=_18_6D6=WkG86F9Qx4PTf7F=2husGbASac6hA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-31 23:14 ` Steve French
2011-11-01 10:04 ` Jeff Layton
[not found] ` <20111101060428.5d474bb9-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-11-02 15:56 ` Stef Bon
[not found] ` <CANXojcx0=j-hLOEO3qQyx65C8mB4sQ6mLhT5AY9vPtwcko5HAQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-02 19:08 ` Jeff Layton
2011-11-04 5:34 ` Suresh Jayaraman
[not found] ` <4EB37983.3080607-IBi9RG/b67k@public.gmane.org>
2011-11-04 5:56 ` Steve French
2011-11-04 14:02 ` Jeff Layton
[not found] ` <20111104100231.57ad94d6-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2011-11-04 16:25 ` Steve French
[not found] ` <CAH2r5muM1_pftwtc=C29-jV5HC-SrwCanmEFPwkDxQpyO6f=rg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-05 0:46 ` Jeff Layton
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.