This discussion is archived
11 Replies Latest reply: Dec 17, 2012 5:08 AM by Bulls123 RSS

Group entry exceeds 2048 char: /etc/group entry truncated

Bulls123 Newbie
Currently Being Moderated
Hello folks,

As we know, /etc/group file can hold max of 2018 char per group name.

What happen if there are so many users (1000) need to be part of one single group?

     "UX: useradd: WARNING: Group entry exceeds 2048 char: /etc/group entry truncated."

I am getting an error as mentioned above.

Exploring, I came to know, I need to differentiate with group name with same guid. (as mentioned below)

groupids::12345: (This is the primary group id, it's close to 2000 char, I don't want to add any more into this part)
groupid1::12345:
groupid2::12345:
groupid3::12345:
groupid4::12345:
groupid5::12345:
groupid6::12345:
groupid7::12345:

When I try add a user with groupdi2 as a secondary group, it's getting updated in all the groupname which as similar guid (12345)

Here I want the newly created user should be part of groupid1 only and should have similar functionally as groupids

Solaris 10 it's.

Plz suggest.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points