Re: restricting access to an NIS netgroup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
   +@netgroup1::::::
   +@netgroup2::::::

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

-- 

rgds
Stephen
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux