[CentOS] restricting access to an NIS netgroup

Wed Nov 9 13:51:51 UTC 2011
Mike VanHorn <michael.vanhorn at wright.edu>

On 11/8/11 4:31 PM, "Stephen Harris" <lists at spuddy.org> wrote:
>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

This works. Thanks!

Mike VanHorn
Senior Computer Systems Administrator
College of Engineering and Computer Science
Wright State University
265 Russ Engineering Center
michael.vanhorn at wright.edu