Operating System - HP-UX
1833372 Members
3275 Online
110052 Solutions
New Discussion

NIS Bug/Limitation Revisited!

 
E. Meng Tan
Occasional Contributor

NIS Bug/Limitation Revisited!

Hi,

Thanks for the work around for NIS map file size limit (makedbm) in adding more users to an NIS group.

I am able to successfully and new users to a NIS group by adding another entry for that group BUT the user cannot change group ownership to files and/or directory if I use this method.

eg. I add user johnD to NIS group abc by adding a new group entry for group abc but now johnD cannot use chgrp abc newdir

Is there a fix for this?

THANKS!
1 REPLY 1
A. Clay Stephenson
Acclaimed Contributor

Re: NIS Bug/Limitation Revisited!

This is my workaround though it's not perfect.
Any of the users who must be members of multiple groups should be placed in the FIRST group entry - that bunch of users ypcat will see.
If you have too many users so that not all can be placed in the first group entry then you're out of luck. You then need to ln -s /etc/group /etc/logingroup of each box - but man logingroup and pay attention to the NIS warnings before you do. If your guys are in logingroup, you won't need a chgrp.

Hope this is close enough for you, Clay
If it ain't broke, I can fix that.