Long /etc/group

Bob Fisher nto0302 at dsacg3.dsac.dla.mil
Thu Mar 7 22:49:25 AEST 1991


>From article <26192 at adm.brl.mil>, by wolf at grasp1.univ-lyon1.fr (Christophe Wolfhugel):
> I have a long group in my /etc/group file, with over 512 caracters in the
> line. Editor ed does not support longer lines, but I can continue to
> extend the line with vi. 
> 
> 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... ?

This may be dependent on your flavor of UNIX.  On our BSD 4.3 system,
the system reads a single buffer of 1023 bytes.  No way to have a
continuation record.  Also, if we used a program to build a record longer
than 1023, the record was truncated and the next record trashed.

Our work-around for this was to create a another group with the same
group number but a different name.

		users:*:123:user1,user2,...usern
		users2:*:123:usern+1,....

Since privileges are based on GID, this seems to work well.  We have
had no problems with this and can have any number of users able to
be associated with a single GID.
-- 
Bob Fisher
US Defense Logistics Agency Systems Automation Center
DSAC-TOL, Box 1605, Columbus, OH 43216-5002     614-238-9071 (AV 850-9071)
bfisher at dsac.dla.mil		osu-cis!dsacg1!bfisher



More information about the Comp.unix.questions mailing list