Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-07-2006, 02:30 AM
|
#1
|
Member
Registered: Dec 2005
Posts: 43
Rep:
|
How we can record the login failures?
Hi every one,
How we can get the information about failure logins in Linux.
Regards,
Mahaboob
|
|
|
02-07-2006, 02:34 AM
|
#2
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Maybe the file /var/log/faillog is what you are looking for.
|
|
|
02-07-2006, 03:39 AM
|
#3
|
Member
Registered: Jan 2005
Location: Nice, France
Distribution: Ubuntu,RHES, Mandriva, RHAS, AIX 4.3.3, 5.2 & 5.3, Debian,Solaris8/10
Posts: 119
Rep:
|
Hy
You can have a look to the </var/log/secure> on a redhat box.
A helpfull tool is <lastlog> command.
Cheers
|
|
|
02-08-2006, 02:20 AM
|
#4
|
Member
Registered: Dec 2005
Posts: 43
Original Poster
Rep:
|
Hi,
I did not get any information in /var/log/faillog .
and I tried in /var/log/secure also.
And also I tried -- lastlog,faillog.But no use.
Please help me in this regard,
Regads,
Shaik
|
|
|
02-08-2006, 03:27 AM
|
#5
|
Member
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227
Rep:
|
on redhat systems:
open the file /etc/pam.d/system-auth and add these entries:
auth required /lib/security/$ISA/pam_tally.so onerr=fail no_magic_root
account required /lib/security/$ISA/pam_tally.so per_user deny=4 no_magic_root reset
save the file then :
# touch /var/log/faillog
now u can monitor failed login attempts and the locked out accounts after the no. of failed attempts has exceeded:
# faillog -u <user name>
|
|
|
02-08-2006, 03:49 AM
|
#6
|
Member
Registered: Dec 2005
Posts: 43
Original Poster
Rep:
|
Thanks "~=gr3p=~"
The problem is solved.
Regards,
Shaik
|
|
|
02-08-2006, 04:06 AM
|
#7
|
Member
Registered: Dec 2005
Posts: 43
Original Poster
Rep:
|
One more sir,
How can I get the IP-Address of failog.
Regards,
Shaik
|
|
|
02-08-2006, 04:59 AM
|
#8
|
Member
Registered: Feb 2005
Location: ~h3av3n~
Distribution: RHEL 4, Fedora Core 3,6,7 Centos 5, Ubuntu 7.04
Posts: 227
Rep:
|
that depends on what service you are using to let others connect to your linux server remotely like for example ssh etc. the solution i posted above is for local logins.
|
|
|
All times are GMT -5. The time now is 10:23 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|