You are not logged in.

#1 2008-04-19 19:51:09

benmorgan
Member
From: Germany
Registered: 2006-07-28
Posts: 67

How to show failed login attempts

When I used Slax, back quite a few years (Slax was my first distro, on a Windows 98), I saw this feature which I thought was absolutely awesome, and it was this: upon logging on, it showed you the amount of times there had been a failed login... if you know what I mean. Anyway, the question is this, how can you do that in Arch? (Or can you not, without great difficulty?)
Thanks

Offline

#2 2008-04-19 19:54:30

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: How to show failed login attempts

The information about failed logins is in /var/log/auth.log, so I guess you just need to parse the information. There might be some script out there...

EDIT: there's much better way "faillog -u <user>" as root.

Last edited by bender02 (2008-04-19 19:56:17)

Offline

#3 2008-04-19 21:30:23

benmorgan
Member
From: Germany
Registered: 2006-07-28
Posts: 67

Re: How to show failed login attempts

Ok, I have done some more research on this and these are some useful pages that I have found:
http://www.cyberciti.biz/tips/rhel-cent … login.html

I'll post again when I come across a nice way to put it in the login message.

Offline

#4 2008-04-21 11:30:13

calef13
Member
Registered: 2007-06-10
Posts: 142

Re: How to show failed login attempts

ssh does this afaik, or at least it shows you the last login, so maybe you could copy their way, I don't know quite how they do it though, check the code maybe.

Offline

Board footer

Powered by FluxBB