[CentOS] restricting access to an NIS netgroup

Tue Nov 8 21:31:55 UTC 2011
Stephen Harris <lists at spuddy.org>

On Tue, Nov 08, 2011 at 03:41:22PM -0500, Mike VanHorn wrote:
> How can I restrict access to a system based on NIS netgroups?

Change nsswitch.conf so that it reads
  passwd: compat
  passwd_compat: nis

And then in /etc/passwd
   + at netgroup1::::::
   + at netgroup2::::::

That way only users in the given netgroup(s) have visible accounts on the
machine.

-- 

rgds
Stephen