Web Hosting Talk







View Full Version : Login --> Email


Dylan
01-23-2002, 10:35 PM
I'm trying to get my servers to email me everytime the admin and root users login through SSH, I haven't had much joy yet... anybody have some solutions up their sleeves?

Robot Two
01-23-2002, 11:03 PM
What sort of servers are you using?

If they are unix-based machines, you can add a small script in ~/.basrc to send out an email when someone logs in.

Or, you can use the "last" command to see a log.

If you are using windows, you can set a login script through the profile manager, and use perl for windows or your favorite command-line emailer to do the same thing.

RutRow
01-23-2002, 11:07 PM
Logcheck will work nicely for that.

http://www.psionic.com/abacus/logcheck