From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <31ddc389360d610696ebc9ae7a089f35.axp-list@archive.invalid> X-Archive-Original-Message-ID: <9708181528.AA09698@sauron.zk3.dec.com> Date: Mon, 18 Aug 1997 12:07:04 -0400 (EDT) From: Richard Bullington Subject: /etc/group maximum group size problem 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 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199708181611.KAA22104@eas.uccs.edu> Date: Mon, 18 Aug 1997 10:10:07 -0600 From: JD Williams Subject: /etc/group maximum group size problem 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 ------=_NextPart_000_0002_01BCABBE.E78329C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable      = 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 ------=_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 From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9b9fbbc71fb85703dcc1f7619ae42ea7.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199708181633.JAA25676@icarus.icarus.com> Date: Mon, 18 Aug 1997 12:21:15 -0700 (PDT) From: Terry Carroll Subject: Kernel compilation In-Reply-To: <199708181611.KAA22104@eas.uccs.edu> 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 -- 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199708210625.XAA12377@rtl.cygnus.com> Date: Wed, 20 Aug 1997 23:25:07 -0700 (PDT) From: Richard Henderson Subject: Re: /etc/group maximum group size problem In-Reply-To: > 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