* Question regarding "Number of users in one group"
@ 1995-05-19 11:55 Kristian Koehntopp
0 siblings, 0 replies; 2+ messages in thread
From: Kristian Koehntopp @ 1995-05-19 11:55 UTC (permalink / raw)
To: tru64-unix-managers
Two questions answered myself:
kris wrote:
> setgroups(2) and getgroups(2) both mention a limits.h constant called
> NGROUPS_MAX, but if I go looking for it like this
>
> kris@oekoalpha /home/kris> grep NGROUPS_MAX /usr/include/limits.h
> #define _POSIX_NGROUPS_MAX 0
>
> I don't find a reasonable number.
That is, because NGROUP_MAX is defined somewhere else and included into
limits.h:
kris@oekoalpha /home/kris> cpp | tail
#include <limits.h>
NGROUPS_MAX
^D
# 234 "/usr/include/limits.h"
# 3 ""
32
This is just as documented in group(4).
Another question I was to answer myself:
> I was not aware of the fact that group names can be used in field 4 of the
> group file. The documentation of group(4) only mentions user names. Does
> this really work?
It didn't work for me:
root@oekoalpha> cat /etc/group
system:*:0:root,kris,friedel,thomas-c,uwe-h,anjal
daemon:*:1:daemon
[ ... ]
sample:*:30:system,daemon
and later:
kris@oekoalpha /home/kris> id
uid=2200(kris) gid=220(tv1_2) groups=0(system),25(ftpadmin),252(kartlib),251(arcinfo),221(webmaster)
I am member of system, but not member of sample.
The one question still open:
> Also, I cannot come up why there should be a limit on the number of users
> per group. What is the limiting factor here?
Kristian
^ permalink raw reply [flat|nested] 2+ messages in thread
* Question regarding "Number of users in one group"
@ 1995-05-19 11:35 Kristian Koehntopp
0 siblings, 0 replies; 2+ messages in thread
From: Kristian Koehntopp @ 1995-05-19 11:35 UTC (permalink / raw)
To: tru64-unix-managers
maurice.steyvers@ica.rulimburg.nl wrote:
> It has been our experience here that more than 12 users in one group will
> cause a message of "Userid in too many groups" to be generated. This
> is merely an annoyance. However, we have found that 32 or more users in
> a group causes that group to become brain dead and unusable.
I was aware that there is a limit in the number of groups a single user can
be in and I had in mind that this limits was a small power of two like 8, 16
or 32 (depending for example on the type and version of NFS one is using).
setgroups(2) and getgroups(2) both mention a limits.h constant called
NGROUPS_MAX, but if I go looking for it like this
kris@oekoalpha /home/kris> grep NGROUPS_MAX /usr/include/limits.h
#define _POSIX_NGROUPS_MAX 0
I don't find a reasonable number. But group(4) tells something about this in
the RESTRICTIONS section:
Increasing the number of groups that a user is in beyond 16 can
affect services that use ONC RPC. This version of ONC RPC supports
up to 32 groups. This is for compatibility with ULTRIX V4.2 systems
and beyond. Many OSF and ONC vendors can only support user membership
of up to 16 groups. In addition, versions of ULTRIX earlier than V4.2,
as well as some OSF vendors, support only 8 groups over ONC RPC.
Users who increase their group membership beyond 8 or 16 groups will
not be able to NFS mount file systems from servers that only support
8 or 16 groups over NFS. In addition, if root group membership is
increased beyond 8 or 16, the NIS service will not work in a mixed
NIS server environment where the servers only 8 or 16 groups.
Also, I cannot come up why there should be a limit on the number of users
per group. What is the limiting factor here?
> a main group. I will attempt to explain:
>
> sub1:*:30:name1,name2,name3....
> sub2:*:31:name10,name11,name12,...
> sub3:*:32:name21,name21,name23,...
>
> main_grp:*:sub1,sub2,sub3,......
>
I was not aware of the fact that group names can be used in field 4 of the
group file. The documentation of group(4) only mentions user names. Does
this really work?
Kristian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-05-19 11:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-05-19 11:55 Question regarding "Number of users in one group" Kristian Koehntopp
-- strict thread matches above, loose matches on Subject: below --
1995-05-19 11:35 Kristian Koehntopp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox