You are not logged in.
Pages: 1
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
Bump?
Offline
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
logging in from console or a specific desktop environment?
Offline
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
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
/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
Pages: 1