You are not logged in.

#1 2004-09-14 10:39:41

Cobra
Member
Registered: 2004-07-30
Posts: 101

X failed login attempts

I have a test computer with slackware on it. Every time I login, it displays who logged in and how many failed login attempts there were. I like this and I would like this feature too on my archlinux box, but I don't know how to do this. Can anyone explain which file(s) I have to change in order to get this output?

Thnx!

Offline

#2 2004-09-23 18:04:59

Cobra
Member
Registered: 2004-07-30
Posts: 101

Re: X failed login attempts

Bump?

Offline

#3 2004-09-23 19:26:34

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: X failed login attempts

my thinking is that no one knows. perhaps you could find out how slack does it and be able to file a little more detailed feature request.


AKA uknowme

I am not your friend

Offline

#4 2004-09-23 19:37:07

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: X failed login attempts

logging in from console or a specific desktop environment?

Offline

#5 2004-09-24 16:45:59

Cobra
Member
Registered: 2004-07-30
Posts: 101

Re: X failed login attempts

I log in from console. I think it's 'agetty' that takes care of the messages but I'm not sure... anyway it's not in /etc/profile or ~/.bash_profile.

Offline

#6 2004-09-24 16:57:21

lytez
Member
Registered: 2003-11-28
Posts: 16
Website

Re: X failed login attempts

A quick google search yielded http://www.comptechdoc.org/os/linux/com … erman.html.

lastb - Shows failed login attempts. This command requires the file /var/log/btmp to exist in order to work. Type "touch /var/log/btmp" to begin logging to this file.

Executing lastb as root will yield the following, automatically creating the file /var/log/btmp.

[root@zanzibar proc]# lastb

btmp begins Fri Sep 17 22:48:12 2004

Have a look at the manpage.


.: lytez :.

Offline

#7 2004-09-25 09:31:23

Cobra
Member
Registered: 2004-07-30
Posts: 101

Re: X failed login attempts

/var/log/btmp is always empty... I tried to log in with wrong password a few times and after that it was still empty. Maybe it's logged somewhere else? In /etc/login.defs it says to log in /var/log/btmp so that cannot be the problem.

Offline

Board footer

Powered by FluxBB