Bug 13279 - Cannot `su' with 37 groups
Summary: Cannot `su' with 37 groups
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc
Version: 6.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-06-30 17:13 UTC by Bob Apodaca
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2000-06-30 17:13:21 UTC
Embargoed:


Attachments (Terms of Use)

Description Bob Apodaca 2000-06-30 17:13:19 UTC
We use NIS here with user `root' in almost every group in our NIS
/etc/group file.  On our workstations, we cannot su to root:

bash>/bin/su -
Password: 
/bin/su: cannot set groups: Invalid argument

I believe the problem is that there is a limit of 32 groups in glibc and
this is preventing me from su'ing to root.

Comment 1 Jakub Jelinek 2000-08-25 15:55:31 UTC
This is actually kernel limitation. You can rebuild kernel (and glibc as well)
yourself to up that limit, in the kernel it is in linux/limits.h and asm/params.h,
in glibc you'll just need to make sure the updated kernel headers are installed
in the system before recompiling glibc. Note however that increasing that
value will eat up space in every tasks' task_struct.
It has no point in increasing this generally when 99.99% people will not need
it and it would just decrease the kernel stack for them.


Note You need to log in before you can comment on or make changes to this bug.