LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (http://www.linuxquestions.org/questions/linux-security-4/)
-   -   How to notify users of last unsuccessful login after succesfully loggin in (http://www.linuxquestions.org/questions/linux-security-4/how-to-notify-users-of-last-unsuccessful-login-after-succesfully-loggin-in-767161/)

mccartjd 11-05-2009 05:17 PM

How to notify users of last unsuccessful login after succesfully loggin in
 
Request for help. I'm not very savy with Linux so I need a little help with a requirement I've been tasked. Is there a way to inform the user after he/she logs into the GUI, using a pop-up screen or somthing, of the last login failure that was commited using their account?

We are using pam_tally 2 for our password security measures. The problem is the pam_tally log stores this information (failed login attempts) but the log is cleared for their account as soon they login succesfully.

Can we make a backup of the pam_tally log or somthing (every few seconds) and have the backup copy sent to the user screen, since the backup copy is not cleared? If this is a good idea what is the best way?

Take care,
Johnny Mac:newbie:

chiragrk 11-05-2009 10:47 PM

Have you checked command `lastb` ? Maybe it'll be useful?

ntvinh986 11-11-2009 02:59 AM

Quote:

Originally Posted by mccartjd (Post 3746291)
Request for help. I'm not very savy with Linux so I need a little help with a requirement I've been tasked. Is there a way to inform the user after he/she logs into the GUI, using a pop-up screen or somthing, of the last login failure that was commited using their account?

We are using pam_tally 2 for our password security measures. The problem is the pam_tally log stores this information (failed login attempts) but the log is cleared for their account as soon they login succesfully.

Can we make a backup of the pam_tally log or somthing (every few seconds) and have the backup copy sent to the user screen, since the backup copy is not cleared? If this is a good idea what is the best way?

Take care,
Johnny Mac:newbie:


Hi guys, Im a newbie. Nice to join this forum.

slimm609 11-11-2009 07:02 AM

Quote:

Originally Posted by ntvinh986 (Post 3752620)
Hi guys, Im a newbie. Nice to join this forum.

Hello Ntvinh986,

Please refrain from posting just to post/raise your post count.

Please read the "READ this before posting" located in the Linux-Newbie section.


All times are GMT -5. The time now is 05:13 PM.