[CentOS] restricting access to an NIS netgroup

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


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



More information about the CentOS mailing list