public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Group limit for NFS exported file systems
@ 2006-08-23  9:16 Robert Szentmihalyi
  2006-08-23  9:32 ` Jan Engelhardt
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Robert Szentmihalyi @ 2006-08-23  9:16 UTC (permalink / raw)
  To: linux-kernel

Hi,

is there a group limit for NFS exported file systems in recent kernels?
One if my users cannot access directories that belong to a group he actually _is_ a member of. That, however, is true only when accessing them over NFS. On the local file system, everything is fine. UIDs and GIDs are the same on client and server, so that cannot be the problem. Client and server run Gentoo Linux with kernel 2.6.16 on the server and 2.6.17 on the client.
Any ideas?

TIA,
 Robert

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Group limit for NFS exported file systems
  2006-08-23  9:16 Group limit for NFS exported file systems Robert Szentmihalyi
@ 2006-08-23  9:32 ` Jan Engelhardt
  2006-08-23  9:43   ` Robert Szentmihalyi
  2006-08-23 10:55 ` Ray Lee
  2006-08-23 11:51 ` Andi Kleen
  2 siblings, 1 reply; 12+ messages in thread
From: Jan Engelhardt @ 2006-08-23  9:32 UTC (permalink / raw)
  To: Robert Szentmihalyi; +Cc: linux-kernel

>Hi,
>
>is there a group limit for NFS exported file systems in recent kernels?
>One if my users cannot access directories that belong to a group he actually _is_ a member of. That, however, is true only when accessing them over NFS. On the local file system, everything is fine. UIDs and GIDs are the same on client and server, so that cannot be the problem. Client and server run Gentoo Linux with kernel 2.6.16 on the server and 2.6.17 on the client.
>Any ideas?

Is his fsuid/fsgid suddenly different?


Jan Engelhardt
-- 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Group limit for NFS exported file systems
  2006-08-23  9:32 ` Jan Engelhardt
@ 2006-08-23  9:43   ` Robert Szentmihalyi
  0 siblings, 0 replies; 12+ messages in thread
From: Robert Szentmihalyi @ 2006-08-23  9:43 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: linux-kernel


> >Hi,
> >
> >is there a group limit for NFS exported file systems in recent kernels?
> >One if my users cannot access directories that belong to a group he
> actually _is_ a member of. That, however, is true only when accessing them over
> NFS. On the local file system, everything is fine. UIDs and GIDs are the
> same on client and server, so that cannot be the problem. Client and server
> run Gentoo Linux with kernel 2.6.16 on the server and 2.6.17 on the client.
> >Any ideas?
> 
> Is his fsuid/fsgid suddenly different?
> 

No. He just gets "access denied" for no obvious reason.
 
> 
> Jan Engelhardt
> -- 

 Robert

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Group limit for NFS exported file systems
  2006-08-23  9:16 Group limit for NFS exported file systems Robert Szentmihalyi
  2006-08-23  9:32 ` Jan Engelhardt
@ 2006-08-23 10:55 ` Ray Lee
  2006-08-23 11:11   ` Robert Szentmihalyi
  2006-08-23 11:51 ` Andi Kleen
  2 siblings, 1 reply; 12+ messages in thread
From: Ray Lee @ 2006-08-23 10:55 UTC (permalink / raw)
  To: Robert Szentmihalyi; +Cc: linux-kernel

On 8/23/06, Robert Szentmihalyi <robert.szentmihalyi@gmx.de> wrote:
> is there a group limit for NFS exported file systems in recent kernels?
> One if my users cannot access directories that belong to a group he actually _is_ a
> member of. That, however, is true only when accessing them over NFS. On the local file
> system, everything is fine. UIDs and GIDs are the same on client and server, so that
> cannot be the problem. Client and server run Gentoo Linux with kernel 2.6.16 on the
> server and 2.6.17 on the client.

Is he a member of more than 16 groups?

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Group limit for NFS exported file systems
  2006-08-23 10:55 ` Ray Lee
@ 2006-08-23 11:11   ` Robert Szentmihalyi
  2006-08-23 11:35     ` Ray Lee
  2006-08-23 14:20     ` Peter Staubach
  0 siblings, 2 replies; 12+ messages in thread
From: Robert Szentmihalyi @ 2006-08-23 11:11 UTC (permalink / raw)
  To: ray-gmail; +Cc: linux-kernel


> On 8/23/06, Robert Szentmihalyi <robert.szentmihalyi@gmx.de> wrote:
> > is there a group limit for NFS exported file systems in recent kernels?
> > One if my users cannot access directories that belong to a group he
> actually _is_ a
> > member of. That, however, is true only when accessing them over NFS. On
> the local file
> > system, everything is fine. UIDs and GIDs are the same on client and
> server, so that
> > cannot be the problem. Client and server run Gentoo Linux with kernel
> 2.6.16 on the
> > server and 2.6.17 on the client.
> 
> Is he a member of more than 16 groups?

Yes. He is actually a member of 27 groups.
Is the limit of 16 groups still current? I was under the impression that it is a limitation of 2.4 kernels....
Is there any proper work-around for this?

Thanks,
 Robert

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Group limit for NFS exported file systems
  2006-08-23 11:11   ` Robert Szentmihalyi
@ 2006-08-23 11:35     ` Ray Lee
  2006-08-23 11:57       ` Jan Engelhardt
  2006-08-23 14:20     ` Peter Staubach
  1 sibling, 1 reply; 12+ messages in thread
From: Ray Lee @ 2006-08-23 11:35 UTC (permalink / raw)
  To: Robert Szentmihalyi; +Cc: linux-kernel

On 8/23/06, Robert Szentmihalyi <robert.szentmihalyi@gmx.de> wrote:
> > Is he a member of more than 16 groups?
>
> Yes. He is actually a member of 27 groups.
> Is the limit of 16 groups still current? I was under the impression that it is a limitation of 2.4 kernels....

Under 2.6 local group membership was expanded to 65536. NFS, however,
is a standard separate from Linux, and it imposes a limit of 16 groups
on the wire for the AUTH_UNIX credentials.

If all your client systems are Linux, you can use the patch at:
    http://www.frankvm.com/nfs-ngroups/
as a work around. (Only the client systems need the patch.)

I haven't used it myself, so best of luck.

Ray

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Group limit for NFS exported file systems
  2006-08-23  9:16 Group limit for NFS exported file systems Robert Szentmihalyi
  2006-08-23  9:32 ` Jan Engelhardt
  2006-08-23 10:55 ` Ray Lee
@ 2006-08-23 11:51 ` Andi Kleen
  2006-08-23 14:13   ` Trond Myklebust
  2006-08-23 15:36   ` Peter Staubach
  2 siblings, 2 replies; 12+ messages in thread
From: Andi Kleen @ 2006-08-23 11:51 UTC (permalink / raw)
  To: Robert Szentmihalyi; +Cc: linux-kernel

"Robert Szentmihalyi" <robert.szentmihalyi@gmx.de> writes:

> is there a group limit for NFS exported file systems in recent kernels?
> One if my users cannot access directories that belong to a group he actually _is_ a member of. That, however, is true only when accessing them over NFS. On the local file system, everything is fine. UIDs and GIDs are the same on client and server, so that cannot be the problem. Client and server run Gentoo Linux with kernel 2.6.16 on the server and 2.6.17 on the client.

NFSv2 has a 8 groups limit in the protocol iirc.

-Andi

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Group limit for NFS exported file systems
  2006-08-23 11:35     ` Ray Lee
@ 2006-08-23 11:57       ` Jan Engelhardt
  2006-08-23 13:01         ` Ray Lee
  0 siblings, 1 reply; 12+ messages in thread
From: Jan Engelhardt @ 2006-08-23 11:57 UTC (permalink / raw)
  To: ray-gmail; +Cc: Robert Szentmihalyi, linux-kernel

>
> Under 2.6 local group membership was expanded to 65536. NFS, however,
> is a standard separate from Linux, and it imposes a limit of 16 groups
> on the wire for the AUTH_UNIX credentials.
>
> If all your client systems are Linux, you can use the patch at:
>   http://www.frankvm.com/nfs-ngroups/
> as a work around. (Only the client systems need the patch.)

If only the client needs to be patched, non-patched and/or non-Linux 
clients and the server (linux or not) should have a problem, should they?


Jan Engelhardt
-- 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Group limit for NFS exported file systems
  2006-08-23 11:57       ` Jan Engelhardt
@ 2006-08-23 13:01         ` Ray Lee
  0 siblings, 0 replies; 12+ messages in thread
From: Ray Lee @ 2006-08-23 13:01 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Robert Szentmihalyi, linux-kernel

On 8/23/06, Jan Engelhardt <jengelh@linux01.gwdg.de> wrote:
> If only the client needs to be patched, non-patched and/or non-Linux
> clients and the server (linux or not) should have a problem, should they?

As I understand it, that's correct. Robert could legitimately patch
only the system(s) in use by the user with 27 groups.

Again, though, I haven't used it, so take that with a grain of salt.

~r.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Group limit for NFS exported file systems
  2006-08-23 11:51 ` Andi Kleen
@ 2006-08-23 14:13   ` Trond Myklebust
  2006-08-23 15:36   ` Peter Staubach
  1 sibling, 0 replies; 12+ messages in thread
From: Trond Myklebust @ 2006-08-23 14:13 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Robert Szentmihalyi, linux-kernel

On Wed, 2006-08-23 at 13:51 +0200, Andi Kleen wrote:
> "Robert Szentmihalyi" <robert.szentmihalyi@gmx.de> writes:
> 
> > is there a group limit for NFS exported file systems in recent kernels?
> > One if my users cannot access directories that belong to a group he actually _is_ a member of. That, however, is true only when accessing them over NFS. On the local file system, everything is fine. UIDs and GIDs are the same on client and server, so that cannot be the problem. Client and server run Gentoo Linux with kernel 2.6.16 on the server and 2.6.17 on the client.
> 
> NFSv2 has a 8 groups limit in the protocol iirc.

16, and it is a limitation of the RPC protocol's AUTH_UNIX/AUTH_SYS
authentication scheme, rather than being specific to NFS.

Note that if you use KerberosV based authentication at your workplace,
then you can migrate your NFS setup to the stronger RPCSEC_GSS/krb5
authentication. That also happens to fix the 16 groups limit problem.

Cheers,
  Trond


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Group limit for NFS exported file systems
  2006-08-23 11:11   ` Robert Szentmihalyi
  2006-08-23 11:35     ` Ray Lee
@ 2006-08-23 14:20     ` Peter Staubach
  1 sibling, 0 replies; 12+ messages in thread
From: Peter Staubach @ 2006-08-23 14:20 UTC (permalink / raw)
  To: Robert Szentmihalyi; +Cc: ray-gmail, linux-kernel

Robert Szentmihalyi wrote:
>> On 8/23/06, Robert Szentmihalyi <robert.szentmihalyi@gmx.de> wrote:
>>     
>>> is there a group limit for NFS exported file systems in recent kernels?
>>> One if my users cannot access directories that belong to a group he
>>>       
>> actually _is_ a
>>     
>>> member of. That, however, is true only when accessing them over NFS. On
>>>       
>> the local file
>>     
>>> system, everything is fine. UIDs and GIDs are the same on client and
>>>       
>> server, so that
>>     
>>> cannot be the problem. Client and server run Gentoo Linux with kernel
>>>       
>> 2.6.16 on the
>>     
>>> server and 2.6.17 on the client.
>>>       
>> Is he a member of more than 16 groups?
>>     
>
> Yes. He is actually a member of 27 groups.
> Is the limit of 16 groups still current? I was under the impression that it is a limitation of 2.4 kernels....
> Is there any proper work-around for this?

The 16 group limit is defined by the specification for AUTH_SYS for the RPC.
It can not be easily changed without affecting interoperability.

The use of RPCSEC_GSS and Kerberos can remove this limit.

    Thanx...

       ps

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Group limit for NFS exported file systems
  2006-08-23 11:51 ` Andi Kleen
  2006-08-23 14:13   ` Trond Myklebust
@ 2006-08-23 15:36   ` Peter Staubach
  1 sibling, 0 replies; 12+ messages in thread
From: Peter Staubach @ 2006-08-23 15:36 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Robert Szentmihalyi, linux-kernel

Andi Kleen wrote:
> "Robert Szentmihalyi" <robert.szentmihalyi@gmx.de> writes:
>
>   
>> is there a group limit for NFS exported file systems in recent kernels?
>> One if my users cannot access directories that belong to a group he actually _is_ a member of. That, however, is true only when accessing them over NFS. On the local file system, everything is fine. UIDs and GIDs are the same on client and server, so that cannot be the problem. Client and server run Gentoo Linux with kernel 2.6.16 on the server and 2.6.17 on the client.
>>     
>
> NFSv2 has a 8 groups limit in the protocol iirc.

Ahh, no.  None of the NFS protocols define anything about the authentication
protocols.  This is defined by the RPC protocol and it defines a limit of 16
for AUTH_SYS, otherwise known as AUTH_UNIX.

Interestingly, the original NFSv2 implementations had a limit of 8, then 10,
and then finally 16.

    Thanx...

       ps

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-08-23 15:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-23  9:16 Group limit for NFS exported file systems Robert Szentmihalyi
2006-08-23  9:32 ` Jan Engelhardt
2006-08-23  9:43   ` Robert Szentmihalyi
2006-08-23 10:55 ` Ray Lee
2006-08-23 11:11   ` Robert Szentmihalyi
2006-08-23 11:35     ` Ray Lee
2006-08-23 11:57       ` Jan Engelhardt
2006-08-23 13:01         ` Ray Lee
2006-08-23 14:20     ` Peter Staubach
2006-08-23 11:51 ` Andi Kleen
2006-08-23 14:13   ` Trond Myklebust
2006-08-23 15:36   ` Peter Staubach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox