Operating System - HP-UX
1833482 Members
2575 Online
110052 Solutions
New Discussion

Line too long in /etc/group ??!

 
SOLVED
Go to solution
Aravind_3
Frequent Advisor

Line too long in /etc/group ??!

I have some 130 users under a group groupA
and when I do /var/yp/ypmake it is reporting the following error:
_______________________________________________
Building the group map(s)... problem storing 101 groupA::101:groupA,ftam000,ftam001,ftam002,ftam003,ftam004,ftam005,ftam006,ftam007,ftam008,
...
ftam121,ftam122,ftam123,ftam124
ERROR (ypmake): in group build.
_______________________________________________

But, if I split the single line of 130 users into two ypmake works fine.

What could be wrong here ?

Aravind
6 REPLIES 6
RAC_1
Honored Contributor

Re: Line too long in /etc/group ??!

really tough.

130 users in single group.
seems the ypmake problem to me.
There is no substitute to HARDWORK
T G Manikandan
Honored Contributor

Re: Line too long in /etc/group ??!

//*
The length of each line in /etc/group is limited to LINE_MAX, as
defined in
*//
man group


Thanks
T G Manikandan
Honored Contributor

Re: Line too long in /etc/group ??!

T G Manikandan
Honored Contributor
Robert-Jan Goossens
Honored Contributor

Re: Line too long in /etc/group ??!

Hi,

You have reached your max user limits.
Whjat you can do is following,

edit /etc/group and make an aditionel group fo groupA like groupa01 with the same group number.

groupA::101:*users*
groupA01::101:*users*

Regards

Robert-Jan.
Bill Hassell
Honored Contributor

Re: Line too long in /etc/group ??!

You should be able to split long lines into multiple lines, that is, repeat the group name and add the new users as in:

grp1::1234:user1,user2,user3
grp1::1234:user4,user5,user6
grp1::1234:user7,user8,user9

NOTE: It is is not necessary to list any user's initial group in the group file for HP-UX as this info is taken from the passwd file. This makes for much shorter lines in the group file. This is a feature introduced at 10.0


Bill Hassell, sysadmin