How to restrict access to a select list of NIS users
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
How to restrict access to a select list of NIS users
Hi,
I have a centos 5.4 server that uses NIS for user authentication. I'd like to restrict login to a list of specific NIS users. I tried modifying access.conf to reflect the required changes, I did a reboot to restart all services but no luck. Changes to /etc/security/access.conf are
+ : root : ALL
+ : user1 : ALL
+ : user2 : ALL
+ : user3 : ALL
+ : user4 : ALL
# All other users should be denied to get access from all sources.
- : ALL : ALL
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth required pam_env.so
auth sufficient pam_unix.so nullok try_first_pass
auth requisite pam_succeed_if.so uid >= 500 quiet
auth required pam_deny.so
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.