Long /etc/group

Jonathan I. Kamens jik at athena.mit.edu
Thu Mar 7 08:49:24 AEST 1991


In article <26192 at adm.brl.mil>, wolf at grasp1.univ-lyon1.fr (Christophe Wolfhugel) writes:
|> So my question: is there any limit for the system in the length of a
|> /etc/group entry? Is yes, how long, and how could I solve this? Create
|> a second entry for the same group? or... ?

  Well, the code I'm looking at right now uses a buffer of length BUFSIZ to
hold each line in the /etc/group file.  So yes, there is a limit on most
systems, and it's probably going to be 512 or 1024 characters.

  The 4.3reno code also appears to have a limit -- 1024 characters.  It
explicily discards anything after that many characters on a line (the older
routines simply assume that everything is less than the maximum line length,
so they get very confused when a line is too long).

  I don't know of any way to solve this, other than not having groups with
that many people in them :-).

-- 
Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik at Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8085			      Home: 617-782-0710



More information about the Comp.unix.questions mailing list