LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-11-2008, 10:41 AM   #1
SecondMet
LQ Newbie
 
Registered: Jul 2008
Posts: 12

Rep: Reputation: 0
Report last login failures


Hi!

I am trying to configure a RHEL4 system running with KDE so that it displays failed login attempts to the user after login.

What I tried so far:

I added the pam_tally entry so that failed login attemps are logged to /var/log/faillog.

I also created a faillog file which has rw-access for the root user, but no access to other users.

Using faillog -u <user> I can see the last login failure.

But what I would like to do is this:

Optimum would be a graphical display during the login to KDE.
In the kdm.conf I already modified the entry so that the last successful login will be shown in the graphical login manager after typing in the user name, before typing the password.

It would be fine, if the last failed login would also be reported here, if possible.

But it would also be okay, if after the successful login a message dialog (e.g. using kdialog) would show up, informing about the last login failures.


I already tried several ways to get there, but my major problem is, that the information in the faillog is reset once the user logs in successfully. So I thought I might have to store it somewhere during the login, before the reset is taking place. But I couldn't figure out, how to do that. Especially since the user doesn't even have the rights to access the faillog command.

I have not been working with Linux that much before, so I don't know, if there is a simple way to solve my problem.

Can anybody help me?
Thanks!
 
  


Reply

Tags
failure, login


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
PAM causing login failures cylarz Linux - Networking 1 12-18-2006 07:20 AM
User login failures ombatult Linux - Software 11 02-25-2006 11:11 AM
How we can record the login failures? mahabooba Linux - Security 7 02-08-2006 05:59 AM
Lire (log analysis, log report) no report in Mandriva 2005 LE (desktop usage) Emmanuel_uk Mandriva 0 01-16-2006 03:11 AM
Samba / XP login failures while tring to access shared files (works with win2k) Zero-0-Effect General 2 01-24-2004 10:27 PM


All times are GMT -5. The time now is 10:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration