LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 11-11-2009, 10:59 AM   #1
sherif.taher
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Rep: Reputation: 0
Unhappy 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

am i missing something here ?
 
Old 11-11-2009, 12:38 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,794

Rep: Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108
That looks good to me, is pam_access.so configured to read access.conf in your /etc/pam.d/system-auth file?
 
Old 11-11-2009, 01:27 PM   #3
sherif.taher
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
obviously not, here's a paste of system-auth

#%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

account required pam_unix.so
account sufficient pam_succeed_if.so uid < 500 quiet
account required pam_permit.so

password requisite pam_cracklib.so try_first_pass retry=3
password sufficient pam_unix.so md5 shadow nis nullok try_first_pass use_authtok
password required pam_deny.so

session optional pam_keyinit.so revoke
session required pam_limits.so
session [success=1 default=ignore] pam_succeed_if.so service in crond quiet use_uid
session required pam_unix.so


how can I configure it to read access.conf?
 
Old 11-11-2009, 01:37 PM   #4
sherif.taher
LQ Newbie
 
Registered: Nov 2009
Posts: 3

Original Poster
Rep: Reputation: 0
I think I got it, just to confirm, I added the following line to system-auth

account required pam_access.so
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to restrict specific users to access restricted sites in squid subhojit Linux - Security 2 11-07-2009 10:15 AM
need to restrict users access to own home directory afgs_uk Linux - Security 2 11-08-2006 11:18 AM
restrict masqueraded users to access an IP, only one at a time Menestrel Linux - Networking 1 11-22-2005 12:46 PM
local root can access nis users??¿?¿ pao Linux - Security 1 07-29-2004 01:06 AM
How to log users access to a NIS server? blur Linux - Networking 1 04-26-2004 07:00 AM


All times are GMT -5. The time now is 01:52 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration