Operating System - HP-UX
1832605 Members
2699 Online
110043 Solutions
New Discussion

problem whilr creating NIS map

 
RAJESH GANGADHARAN
Regular Advisor

problem whilr creating NIS map

I am facing problem, while creating NIS map of group file
recently i added some users to one of the group after that when i was trying to create the NIS map of group it came out with an given below

Building the group map(s)... problem storing 278 wireless:*:278:wireless

ERROR (ypmake): in group build.

ypmake complete: errors encountered.

then i removed some of the users and tried then i founf out that when the no of users lessthan or equal to 130 it is bulding map, otherwise it is giving the same error

thanks in advance
raj
Let the choices you make today be the choices you can live with tomorrow.
2 REPLIES 2
Berlene Herren
Honored Contributor

Re: problem whilr creating NIS map

There is a limitation on NIS, I believe it is 1024 characters? There are some creative work arounds, Brian Hackley probably knows of some. Or, on 11.0, you could go to NIS+.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
A. Clay Stephenson
Acclaimed Contributor

Re: problem whilr creating NIS map

Hi Rajesh,

Berlene is indeed correct the limit per NIS entry is 1024 characters (and I think it's really 1023 + the terminating ASCII NULL). I can offer you I workaround but it's not perfect.

Split your wireless group into 2 /etc/group entries: e.g
wireless:*:278:user1,user2,user3 .....
wireless:*:278:user81,user82,user83 ....

Unfortunately, NIS will only see the 1st group
entry but ypmake will not complain. You should therefore put your most 'popular' guys in the first entry. The good news is that unless you specifically need to check group membership of this user every thing still works fine because the group gid (278) is picked up from the passwd map. For example, doing an ls -l of files owned by user82 in the second entry will still show wireless rather than 278 as the group.

You could also look into setting up logingroup
and using newgrp to change groups.

Hope this helps, Clay

If it ain't broke, I can fix that.