If one user have more than 16 groups, it will cause that the groups don’t work for permission control.
How to unlimited this number of groups per user in Centos4/5 ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t unlimit the additionnal groups per user. But you can raise the limit. Beware that most Unix systems are limited to 16 groups per user (see http://www.j3e.de/ngroups.html) , so does NFS, see https://xkyle.com/solving-the-nfs-16-group-limit-problem/ and/or http://nfsworld.blogspot.fr/2005/03/whats-deal-on-16-group-id-limitation.html
The number of group per user is defined by
NGROUPS_MAXfrom<limits.h>but should be read withsysconf(_SC_NGROUPS_MAX). You can change the kernel maximum group count withsysctl kernel.ngroupmaxor/proc/sys/kernel/ngroups_max. But this will require support from C library, PAM and login program.