* NFS TUNING: #define NFS3_MAXGROUPS
@ 2004-09-26 14:38 Christian Fischer
2004-09-26 14:43 ` Christian Fischer
2004-09-26 16:10 ` Trond Myklebust
0 siblings, 2 replies; 6+ messages in thread
From: Christian Fischer @ 2004-09-26 14:38 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 309 bytes --]
Hello.
Please can you tell me if NFS_MAXGROUPS is tunable for linux kernel? (and is
it safe?) I need more than 16 groups per user. For BSD-kernel it is a tunable
constant (i think so) and I'm not so familar with such things.
What else must i do if it is really tunable?
Thanks
Christian
--
[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: NFS TUNING: #define NFS3_MAXGROUPS
2004-09-26 14:38 NFS TUNING: #define NFS3_MAXGROUPS Christian Fischer
@ 2004-09-26 14:43 ` Christian Fischer
2004-09-26 22:28 ` Frank van Maarseveen
2004-09-26 16:10 ` Trond Myklebust
1 sibling, 1 reply; 6+ messages in thread
From: Christian Fischer @ 2004-09-26 14:43 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 503 bytes --]
On Sunday 26 September 2004 16:38, Christian Fischer wrote:
> Hello.
>
> Please can you tell me if NFS_MAXGROUPS is tunable for linux kernel? (and
> is it safe?) I need more than 16 groups per user. For BSD-kernel it is a
> tunable constant (i think so) and I'm not so familar with such things.
>
> What else must i do if it is really tunable?
>
> Thanks
> Christian
Sorry, broken english.
Please can you tell me whether NFS_MAXGROUPS is tunable for linux kernel?
Thanks again
--
[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: NFS TUNING: #define NFS3_MAXGROUPS
2004-09-26 14:38 NFS TUNING: #define NFS3_MAXGROUPS Christian Fischer
2004-09-26 14:43 ` Christian Fischer
@ 2004-09-26 16:10 ` Trond Myklebust
2004-09-26 16:25 ` Christian Fischer
1 sibling, 1 reply; 6+ messages in thread
From: Trond Myklebust @ 2004-09-26 16:10 UTC (permalink / raw)
To: Christian Fischer; +Cc: linux-kernel
På su , 26/09/2004 klokka 10:38, skreiv Christian Fischer:
> Hello.
>
> Please can you tell me if NFS_MAXGROUPS is tunable for linux kernel? (and is
> it safe?) I need more than 16 groups per user. For BSD-kernel it is a tunable
> constant (i think so) and I'm not so familar with such things.
>
> What else must i do if it is really tunable?
No, it is NOT tunable. The SunRPC protocol (rfc1831) states clearly that
the AUTH_SYS (a.k.a. AUTH_UNIX) structure is defined as
struct authsys_parms {
unsigned int stamp;
string machinename<255>;
unsigned int uid;
unsigned int gid;
unsigned int gids<16>;
};
If the BSDs are playing around with that, then they are not adhering to
the protocol, and will be incompatible with all other SunRPC
implementations.
Cheers,
Trond
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: NFS TUNING: #define NFS3_MAXGROUPS
2004-09-26 16:10 ` Trond Myklebust
@ 2004-09-26 16:25 ` Christian Fischer
0 siblings, 0 replies; 6+ messages in thread
From: Christian Fischer @ 2004-09-26 16:25 UTC (permalink / raw)
To: Trond Myklebust; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 604 bytes --]
On Sunday 26 September 2004 18:10, Trond Myklebust wrote:
> No, it is NOT tunable. The SunRPC protocol (rfc1831) states clearly that
> the AUTH_SYS (a.k.a. AUTH_UNIX) structure is defined as
>
> struct authsys_parms {
> unsigned int stamp;
> string machinename<255>;
> unsigned int uid;
> unsigned int gid;
> unsigned int gids<16>;
> };
>
> If the BSDs are playing around with that, then they are not adhering to
> the protocol, and will be incompatible with all other SunRPC
> implementations.
That's a pity.
Christian
--
[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: NFS TUNING: #define NFS3_MAXGROUPS
2004-09-26 14:43 ` Christian Fischer
@ 2004-09-26 22:28 ` Frank van Maarseveen
2004-09-27 13:38 ` Christian Fischer
0 siblings, 1 reply; 6+ messages in thread
From: Frank van Maarseveen @ 2004-09-26 22:28 UTC (permalink / raw)
To: Christian Fischer; +Cc: linux-kernel
On Sun, Sep 26, 2004 at 04:43:29PM +0200, Christian Fischer wrote:
> On Sunday 26 September 2004 16:38, Christian Fischer wrote:
> > Hello.
> >
> > Please can you tell me if NFS_MAXGROUPS is tunable for linux kernel? (and
> > is it safe?) I need more than 16 groups per user. For BSD-kernel it is a
> > tunable constant (i think so) and I'm not so familar with such things.
That limit is hardcoded in the SUNRPC protocol (part of NFS) and
_cannot_ be changed: it is a fundamental constant in NFS with AUTH_UNIX
authentication. However, there is a trick to bypass this protocol
limitation, see http://www.frankvm.com/nfs-ngroups for a 2.4.x patch.
The 2.6.x patch is under development.
--
Frank
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: NFS TUNING: #define NFS3_MAXGROUPS
2004-09-26 22:28 ` Frank van Maarseveen
@ 2004-09-27 13:38 ` Christian Fischer
0 siblings, 0 replies; 6+ messages in thread
From: Christian Fischer @ 2004-09-27 13:38 UTC (permalink / raw)
To: Frank van Maarseveen; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]
On Monday 27 September 2004 00:28, Frank van Maarseveen wrote:
> That limit is hardcoded in the SUNRPC protocol (part of NFS) and
> _cannot_ be changed: it is a fundamental constant in NFS with AUTH_UNIX
> authentication. However, there is a trick to bypass this protocol
> limitation, see http://www.frankvm.com/nfs-ngroups for a 2.4.x patch.
>
> The 2.6.x patch is under development.
Thanks for this link. It isn't no more necessary to patch anything since i've
reduced the number of groups per uid to the limit. Well, i'd been reading the
sunRPC rfc before, bringing a lot of trouble to me.
The main problem was that users in the seventeenth (or higher) group (they
should not have any permissions for this group because of NFS_MAXGROUPS) were
able to change without permissions into those directories. I think a user or
group should have permission or NOT, and not a "bit of permissions".
Christian
root@terminalserver # ls -al /home/henry/shared/
[...]
drwxrws--- not_henry 17th_grp work
[...]
henry@terminalserver # cd /home/henry/shared/work/
henry@terminalserver work # ls
ls: reading directory .: Permission denied
# groups henry
[...] 17th_grp 18th_grp [...]
--
[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-09-27 13:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-26 14:38 NFS TUNING: #define NFS3_MAXGROUPS Christian Fischer
2004-09-26 14:43 ` Christian Fischer
2004-09-26 22:28 ` Frank van Maarseveen
2004-09-27 13:38 ` Christian Fischer
2004-09-26 16:10 ` Trond Myklebust
2004-09-26 16:25 ` Christian Fischer
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.