Results 1 to 4 of 4
Hi All,
I just started reading on Linux. I have specific requirement. I want to get the user logon notification to my application on Linux. when any user logs in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-16-2009 #1Just Joined!
- Join Date
- Jul 2009
- Posts
- 1
User logon notification
Hi All,
I just started reading on Linux. I have specific requirement. I want to get the user logon notification to my application on Linux. when any user logs in to the system, my application should get the notification and should get the details about the loged on session.
The restriction is that the application will not poll for any specific file to get this information. Since polling will have the performance hit. Once my application gets notification, it will process that notification.
I tried to check using bash_profile , bash_logout scripts but it has a limitation of working only in textual mode and is limited to bash shell.
Is there any generic way to get the logon notification [compatible for both text and graphical mode, not limited to any shell] ?
**Note:- I am using RedHat Linux
Thanks in Advance
Sanjay
- 07-17-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,156
I would suggest that you get the source code to the login command and modify that to alert your application. Then, any login to the system can be monitored however makes sense to you.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 07-17-2009 #3Just Joined!
- Join Date
- Jul 2009
- Posts
- 1
You can also add some info in /etc/profile.
- 02-09-2013 #4Just Joined!
- Join Date
- Feb 2013
- Posts
- 1
I realize that you were looking for a solution that does not poll log-files for this sort of information, but I feel that I should at least mention my application, since it fits your description quite well.
Auhthentication Monitor is free software that runs on Debian and Ubuntu. It monitors the log-files of selected services (such as sshd or proftd, for example) and notifies you when a selected list of users logs in from unknown IP-addresses.
Authentication Monitor can found at my website "bwyan DOT dk" or by searching for "Authentication Monitor" using Google.



