Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 04-22-2009, 09:32 AM   #1
Registered: Sep 2003
Location: Laurel MD
Posts: 294

Rep: Reputation: 32
Account lockout with PAM


I keep reading that by adding the following line

auth required onerr=fail deny=2

to the file /etc/pam.d/system-auth that accounts should be locked out after 2 bad password attempts. I have tried this and it is not working for me. Is there something else I have to do? Do I need to reboot afterward?

I have RHES 5, I am using ssh to login to the system.

I don't intend to leave it at 2 I will increase to 5, I'm just using 2 for the number of attempts for testing purposes. I know this makes the system open to denial of service attacks but its a security requirement where I work.

I also have a should I be using that instead? I've tried it once or twice without luck.

Thank you
Old 04-22-2009, 02:54 PM   #2
Registered: Sep 2003
Location: Laurel MD
Posts: 294

Original Poster
Rep: Reputation: 32
found the problem, the following line is also required and I didn't have it
account sufficient


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Set account lockout without using pam HelpMe2877 Linux - Security 4 12-03-2008 03:05 PM
NISPOM Security: PAM account lockout and XScreenSaver Settings ElvisImprsntr Linux - Newbie 3 09-26-2007 06:44 PM
account lockout threshold pasupuleti Programming 3 10-03-2006 12:11 AM
Account lockout threshold moinpasha Linux - Security 10 09-28-2006 07:27 AM
Automatic Account lockout jimrt Linux - Security 3 03-26-2003 08:32 PM

All times are GMT -5. The time now is 04:25 AM.

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