* /etc/group maximum group size problem
@ 1997-08-18 16:07 Richard Bullington
0 siblings, 0 replies; 4+ messages in thread
From: Richard Bullington @ 1997-08-18 16:07 UTC (permalink / raw)
On Red Hat Linux 4.2 with all current patches applied, having a line in
/etc/group that surpasses a certain length causes the getgroups(),
initgroups() to return incomplete information.
I just moved the system from Red Hat 4.1, where there were no problems
with this. There are 166 user accounts on the system, and the 'users'
group was indeed 166 usernames long.
Experimentation showed that 67 users in the users group were OK, on a line
479 characters long, but 68 users broke getgroups() and initgroups()
(judging from login attempts and the use of the "id" command, and doing
"ls -l" commands only to see numeric IDs in the upper groupid space). They
returned output that was correct up to the group in question, and then did
not show that group or any others beyond it.
I concocted a test line for /etc/groups, with users numbered 'u0..uN'.
This worked where N=84, but failed where N=85. The usernames are bogus,
but that doesn't seem to affect the results.
This line causes the failure of any groups that follow it:
killgrp::55:u1,u2,u3,u4,u5,u6,u7,u8,u9,u10,u11,u12,u13,u14,u15,u16,u17,u18,u19,u20,u21,u22,u23,u24,u25,u26,u27,u28,u29,u30,u31,u32,u33,u34,u35,u36,u37,u38,u39,u40,u41,u42,u43,u44,u45,u46,u47,u48,u49,u50,u51,u52,u53,u54,u55,u56,u57,u58,u59,u60,u61,u62,u63,
u64,u65,u66,u67,u68,u69,u70,u71,u72,u73,u74,u75,u76,u77,u78,u79,u80,u81,u82,u83,u84,u85
I tested this under i386-architecture Red Hat 4.2, and it does not fail on
that architecture, at least with the test above where N <= 95. I did not
test beyond that, except to see that my 166-user group line did not cause
a failure.
I think this is the same problem reported in this message to the axp-list:
A Couple Glibc/NSS Bugs
Daryll Strauss (daryll@d2.com)
Mon, 14 Apr 1997 18:32:46 -0700 (PDT)
My first bug is that the size of the NSS_BUFLEN_GROUP in grp.h is too
small. In our case we have a group with 75 people in it. The 1024 byte
buffer isn't big enough and lots of program die when they attempt to
do getgrpbynam and get back a zero. I doubled the size of that buffer.
Does anyone know if this has been resolved in more recent gibc builds? I
would hope that the buffer size for something like that would be
reconfigurable without having to recompile glibc or NSS.
-Richard Bullington <rbulling@obscure.org> http://www.obscure.org
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* /etc/group maximum group size problem
@ 1997-08-18 16:10 JD Williams
1997-08-18 19:21 ` Kernel compilation Terry Carroll
0 siblings, 1 reply; 4+ messages in thread
From: JD Williams @ 1997-08-18 16:10 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 900 bytes --]
This is a multi-part message in MIME format.
------=_NextPart_000_0002_01BCABBE.E78329C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Can any tell me if there is a HOW-To compile a kernel on a Alpha or =
does any have instructions. I have searched to no avail
JD Williams <williamj@eas.uccs.edu>
------=_NextPart_000_0002_01BCABBE.E78329C0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
=
Can any tell=20
me if there is a HOW-To compile a kernel on a Alpha or does any have=20
instructions. I have searched to no avail
JD Williams <williamj@eas.uccs.edu>
------=_NextPart_000_0002_01BCABBE.E78329C0--
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Kernel compilation
1997-08-18 16:10 /etc/group maximum group size problem JD Williams
@ 1997-08-18 19:21 ` Terry Carroll
0 siblings, 0 replies; 4+ messages in thread
From: Terry Carroll @ 1997-08-18 19:21 UTC (permalink / raw)
On Mon, 18 Aug 1997, JD Williams wrote:
> Can any tell me if there is a HOW-To compile a kernel on a Alpha or
> does any have instructions. I have searched to no avail
<http://www.eleves.ens.fr:8080/home/quatrava/AXP-port-FAQ/index.html.en>
--
Terry Carroll | "Mars ain't the kind of place to raise your kids.
Santa Clara, CA | In fact, it's cold as hell." - Bernie Taupin, 1972
carroll@tjc.com | "Air temperatures ... show an afternoon high near +9
Modell delenda est | degrees Fahrenheit." - Mars Pathfinder Mission, 1997
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: /etc/group maximum group size problem
[not found] <Pine.LNX.3.95.970818113056.15068A-100000@tiamat.obscure.org>
@ 1997-08-21 6:25 ` Richard Henderson
0 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 1997-08-21 6:25 UTC (permalink / raw)
> On Red Hat Linux 4.2 with all current patches applied, having a line in
> /etc/group that surpasses a certain length causes the getgroups(),
> initgroups() to return incomplete information.
[...]
> Does anyone know if this has been resolved in more recent gibc builds? I
> would hope that the buffer size for something like that would be
> reconfigurable without having to recompile glibc or NSS.
Yep. Fixed in glibc2 at least. The problem here was not with being
static but a broken test for expansion. :-(
r~
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-08-21 6:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-08-18 16:10 /etc/group maximum group size problem JD Williams
1997-08-18 19:21 ` Kernel compilation Terry Carroll
[not found] <Pine.LNX.3.95.970818113056.15068A-100000@tiamat.obscure.org>
1997-08-21 6:25 ` /etc/group maximum group size problem Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
1997-08-18 16:07 Richard Bullington
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox