Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1144
  • Last Modified:

/etc/security/access.conf problem

I'm trying disable access using /etc/access.conf file and still user can access. What am I  missing here?  This is what I put in access.conf file

- : david : ALL

0
mokkan
Asked:
mokkan
  • 2
2 Solutions
 
poison5151Commented:
You need to include pam_access in your PAM configuration file. That is the module that actually reads access.conf and denies/permits access.

For, example, for RHEL, my PAM configuration is under /etc/pam.d/system-auth.

Insert before the first account line:

account    required    pam_access.so

Open in new window

0
 
mokkanAuthor Commented:
thank you. It worked.
0
 
mokkanAuthor Commented:
Thank you for your quick help.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now