adduser and group file

From: Jacques Maleyrot <Jacques.Maleyrot_at_u-bourgogne.fr>
Date: Thu, 24 Aug 2000 12:21:39 +0200

   Hello all!

OS :DU 4.0F patch3


My /etc/group looks like :

....
group1:*:100:
group2:*:101:users1, user2 .................... ....
 usern
group2:*:101: usern+1, usern+2

group4:*:103: userx


So some group lines are limited to about 256 characters.
I read in archives and in admin book that maximum line lengh in /etc/group
is LINE_MAX define in limits.h.

In limits.h :

..
# define LINE_MAX _POSIX2_LINE_MAX
...
# define _POSIX2_LINE_MAX 2048



If i consider 2048 / 8 = 256 each line is limited to 256 characters OK.

But i have some lines in /etc/group with same group name and same gid.
It seems that this don't get any trouble in running OS;

But i thaught it was impossible having many lines with same group name and
same gid.

Does anyone know that point?

Thanks in advance!





--
Jacques Maleyrot
Université de Bourgogne 
Centre de Ressources Informatiques
BP 27877   21078 DIJON Cedex
Email: Jacques.Maleyrot_at_mail.u-bourgogne.fr
tel : (33) 380395205
Fax:  (33) 380395269
Received on Thu Aug 24 2000 - 10:49:44 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT