LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-07-2014, 12:26 PM   #16
fatalfrrog
Member
 
Registered: May 2011
Distribution: Slackware
Posts: 57

Rep: Reputation: 31

You can use fail2ban for this. fail2ban is usually used to prevent remote attacks, but fail2ban is just some perl that looks at logs and uses iptables to prevent further attempts. You can edit the source to 1) find the desired failures (e.g. not necessarily just remote connections) 2) in addition to iptables: if the user account exists locally, passwd -l $USER to lock the account 3) at the ban expiration, passwd -u $USER to unlock.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Account lock after failed login attempts alfonsosg Linux - Security 5 08-03-2010 07:24 AM
Trying to lock user accounts after too many login failures. larold Linux - Security 1 06-08-2010 02:39 PM
lock root account after 3 login attempts - RHEL AS 3 jrparker2005 Red Hat 1 05-17-2005 12:43 PM
Lock account after successive login attempts herrmag Linux - Newbie 1 02-03-2005 06:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:02 PM.

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