*BSD News Article 52782


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!uwm.edu!lll-winken.llnl.gov!enews.sgi.com!decwrl!news1.digital.com!vixie!nnrp.vix.com!vixie
From: vixie@vix.com (Paul A Vixie)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: How many members in an /etc/group?
Date: 16 Oct 1995 22:53:58 GMT
Organization: Vixie Enterprises
Lines: 16
Message-ID: <VIXIE.95Oct16155358@wisdom.vix.com>
References: <williamsg-1510952330530001@ppp110.quadrant.net>
NNTP-Posting-Host: wisdom.home.vix.com
In-reply-to: williamsg@quadrant.net's message of 16 Oct 1995 05:26:25 GMT

>Is there a maximum for the number of users in a group?  Or perhaps
>problems with programs parsing /etc/group not expecting large fields
>(which would actually mean a problem with the system-level getgrent(3)
>routines?)

In /usr/src/lib/libc/gen/getgrent.c, we see:

#define MAXGRP          200
static char *members[MAXGRP];
#define MAXLINELENGTH   1024
static char line[MAXLINELENGTH];
-- 
Paul Vixie
La Honda, CA			"Illegitimibus non carborundum."
<paul@vix.com>
pacbell!vixie!paul