LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 05-10-2016, 02:04 PM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Trying to setup PAM to lock out after so many login attempts is locking me out


I keep locking me out, instead of the bad guy.

I'm trying to setup under /etc/pam using both system-auth and password-auth so that the interval in seconds will be 15 minutes or greater for a failed login.

I'm adding the following to both /etc/pam.d/system-auth and /etc/pam.d/password-auth and still not working.

Code:
Add the following line immediately before the "pam_unix.so" statement in the "AUTH" section: 

auth required pam_faillock.so preauth silent deny=3 unlock_time=604800 fail_interval=900 

Add the following line immediately after the "pam_unix.so" statement in the "AUTH" section: 

auth [default=die] pam_faillock.so authfail deny=3 unlock_time=604800 fail_interval=900 

Add the following line immediately before the "pam_unix.so" statement in the "ACCOUNT" section: 

account required pam_faillock.so
PAM can't be this hard, however I keep locking out all of the accounts out. So I can't figure out where I'm going wrong.

If anyone can offer some tips on how to get comfortable with PAM, let me know.

thanks

Last edited by JockVSJock; 05-10-2016 at 02:09 PM.
 
  


Reply

Tags
pam.d, rhel



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
PAM, pam_tally, and locking out users after 3 failed login attempts in RHEL5 frail.knight Linux - Security 10 03-17-2011 04:06 PM
Account lock after failed login attempts alfonsosg Linux - Security 5 08-03-2010 07:24 AM
Lock after invalid login attempts, session lock, minimum password length nstarz Linux - Security 1 06-24-2010 05:36 PM
Lock account after successive login attempts herrmag Linux - Newbie 1 02-03-2005 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:55 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration