LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Creating Groups... (https://www.linuxquestions.org/questions/linux-newbie-8/creating-groups-284646/)

gfrair 01-31-2005 06:08 PM

Creating Groups...
 
I have a quick question for anyone willing to answer with regards to user group creation:

Are there limitations to the number of groups a person can belong to? The number of people in a group? The number of groups on the system?

How would these be specified or changed?

Any input would be greatly appreciated,

Thanks

trickykid 01-31-2005 07:34 PM

The default kernel usually limits the max number of groups to 32. This can be changed by a kernel recompile and glibc. Though this was a few kernels back, not sure if its changed in more recent kernels, etc. Perhaps someone else will reply if they know off the top of their head if that has changed.

trickykid 01-31-2005 07:38 PM

Actually looking at the src for the 2.4.29 kernel I have on my machine.. its still apparently shows that 32 is the hardcoded max number of groups a user can belong in. So if you need more, change these two files with the value specified with them to what you want:

/usr/src/linux/include/asm/param.h
#define NGROUPS 32

/usr/src/linux/include/linux/limits.h:
#define NGROUPS_MAX 32


All times are GMT -5. The time now is 08:53 PM.