PDA

View Full Version : [ubuntu] Send notification when remote user logs in



Johnneylee
November 1st, 2009, 02:11 AM
I'm trying to write a program that displays a notification using the new notification daemon. What I'm trying to accomplish is, whenever a user successfully logs in, a notification is sent to all users in a admin group.
What I want it to display is
1. Who logged in
2. How they logged in (ssh, telnet, etc.)
3. The tty
4. The timestamp

I've been toiling away at it for three days now, and I don't think I'm near a solution. I suppose it's nearest cousin would be sending an email to one's self whenever a root user logs in.