Operating System - HP-UX
1833599 Members
4026 Online
110061 Solutions
New Discussion

etc-group : group names ?

 
MikeL_4
Super Advisor

etc-group : group names ?

If a line for a group in the /etc/group file exceeds it's size limit and I create another line, does the name of the group have to be different, or can they all be the same??

ie: apps::101:user1,user2,user3,......

can the next line be: apps::101:.... also or
does it have to change to say: apps2::101:....
6 REPLIES 6
Robert-Jan Goossens
Honored Contributor

Re: etc-group : group names ?

Hi Mike,

The should be different, group id is the same.

apps:101
apps2:101

Regards,
Robert-Jan.
Uday_S_Ankolekar
Honored Contributor

Re: etc-group : group names ?

It can be same...!

-USA.
Good Luck..
John Poff
Honored Contributor

Re: etc-group : group names ?

Hi,

I'm pretty sure you have to stick to one group per line. How long is your line? How many users are you trying to put in a group? Remember that you only need to specify the additional groups for users; you don't need an entry for their default group.

JP
Elmar P. Kolkman
Honored Contributor

Re: etc-group : group names ?

It can not be the same. Some commands fail on things like this...
But it is not always necessary. For users whose login group is apps (groupid 101 in /etc/passwd) it is not necessary to be mentioned in the group file. This could solve your issue.
Every problem has at least one solution. Only some solutions are harder to find.
Helen French
Honored Contributor

Re: etc-group : group names ?

Since the group is defined with the GID and not the name, the normal practice would be:

apps::101: ....
apps1::101: ....

This will be easy to identify and differentiate and you will get the same group permission in both places. If I remember correctly, the limitation is 1024 character per line, but I think the new release OS and patches might have overcome this limitation.
Life is a promise, fulfill it!
Bruno Ganino
Honored Contributor

Re: etc-group : group names ?

It can NOT equal !
bye
Torino (Turin) +2H