I’ve been finding all kinds of neat uses for Notifo, a multipurpose notification tool for the iPhone, and I wanted to be notified when anyone (should only be me) logged in to my home computer via SSH. I wrote a Pluggable Authentication Module (PAM) that sends a notice to Notifo whenever someone logs in or activates the PAM module another day (yes, I know that “PAM module” is redundant).
Check it out on SourceForge at http://iharder.net/pam_notifo. I developed it on a Mac. I don’t know if it will compile properly on Linux. Please try it out.
Robert, awesome plugin. still trying to get it to work on my Ubuntu machine though… and its not wanting to compile with the make command yet
@Shelby Let me know what you have to do to make it Ubuntu-compatible. I tried to make the software as simple as possible to help with porting. Good luck!
I can send a patch that got it working for me on Ubuntu, just need to know where to send it.
@Dis That’s great! Stick it on pastebin.com and then post the link. Thanks.
The commandline processing is a hack, but it works. Almost certainly contains possible buffer overflows and such though, so treat with care. Should be OK once it is installed and configured. (I tested via ssh – opened a local root console, edited pam.d/sshd to enable the module, then ssh’d to localhost from a different console. If it -really- broke, I had the root console and could disable it again, although I never needed to. Pam just threw errors when it broke and moved on, and when it worked I got my notifications.) Once it is working, it can be added to common-session to notify about everything – ssh, local console, local X, etc.
http://pastebin.com/VJ9KTQDU
Dis McCarthy
I see you manage it to get it working on a linux box.
Can you please explain how you did it?
Thanks,