4

I am trying to create a NIS group with a member list that exceeds 1024 characters. Now I can't do that because the database that NIS uses restricts the value part of the key/value pair to 1024 characters.

The internet suggests that I should be able to break up the list and have sub-lists as members of the main list, but it doesn't seem to work for me.

Theoretically, I should be able to go:

group:x:999:sublist1,sublist2
sublist1:x:998:a,b,c, [...]
sublist2:x:997:m,n,o, [...]

Then make and deal with nscd caches... if I then check a user account involved:

$ id
[...]
groups=[...],998(sublist2)

Since I want to use the group group, I should be able to go:

$ newgrp group
Sorry.

...but it doesn't work.

What am I doing wrong here?

1 Answers1

4

I think you need to keep the GID that same for all the (sub)groups and have the real group as the first to be found e.g.

somegroup:x:999:a
somegroup1:x:999:b,c,d, [...]
somegroup2:x:999:e,f,g, [...]
user9517
  • 117,122