1825759 Members
2219 Online
109687 Solutions
New Discussion

Group Field limit

 
Chakravarthi
Trusted Contributor

Group Field limit

Hi all,

How to increase Group field list limit, i have already crossed 1000 characters,,

How to increase it

regards
chakri
9 REPLIES 9
G. Vrijhoeven
Honored Contributor

Re: Group Field limit

chakri,

This can not be changed:

check:

/usr/include/limits.h for LINE_MAX.

In UX11:
# define LINE_MAX 2048L /* Expected length in bytes of a utility's input line when input is from text files */

Gideon
Robert-Jan Goossens
Honored Contributor

Re: Group Field limit

Hi Chakri,

Is there a problem in a specific group ?

You can solce this by adding a second group with the same groupid.

oracle::1000:oracle,composer
oracle1::1000:

Hope it helps.

Robert-Jan
Niraj Kumar Verma
Trusted Contributor

Re: Group Field limit

Hi,


you can start other line with same group name and group id


users:2020:a,a,a,a,a,a
users:2020:b,b,b,b,b,b


Regards
-Niraj
Niraj.Verma@philips.com
Chakravarthi
Trusted Contributor

Re: Group Field limit

Hi all,

i want to increase the no of characters a group line can hold in NIS

regards
chakri
Niraj Kumar Verma
Trusted Contributor

Re: Group Field limit

Hi,

I have told you the practical situation in NIS only.

I am doing the same this in our NIS map. nad it is working fine.

you can not increase the line lenght.

Regards
-Niraj
Niraj.Verma@philips.com
Robert-Jan Goossens
Honored Contributor

Re: Group Field limit

Hi Chakri.

-Quote-

Rick Garland

Haven't had trouble doing this. This is a known issue with HPUX and the character length of the groups in the group file. It is suppose to be 1024 characters in a group, but I have seen it barf at less. When doing add users, do a count on the number of characters in a group and if the number is exceeded, create a duplicate group with the same name, GID, etc, and add the new user entry in there.

My count has been 990 characters in a group. If it will be more than 990, make a new group

-andquote-

Regards,

Robert-Jan.
Chakravarthi
Trusted Contributor

Re: Group Field limit

Hi all,


the secong group entry is accepted by NIS but when i do id -a it doesnt show me the group name for that user.

regards
chakri
Chakravarthi
Trusted Contributor

Re: Group Field limit

What Robert said worked,,
Robert-Jan Goossens
Honored Contributor

Re: Group Field limit

Hi Chakri,

Is the command groups giving you the same output ?

Kind regards,

Robert-Jan.