[CentOS] E-Mail on SSH login?

2009-11-02 Thread ML
Does anyone have thoughts on how to kick off an e-mail on SSH login? -Jason ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] E-Mail on SSH login?

2009-11-02 Thread Robert Heller
At Mon, 2 Nov 2009 14:14:10 -0800 CentOS mailing list centos@centos.org wrote: Does anyone have thoughts on how to kick off an e-mail on SSH login? Probably in ~/.bash_login, ~/.login, or ~/.profile, after checking various environment variables, etc. -Jason

Re: [CentOS] E-Mail on SSH login?

2009-11-02 Thread nate
ML wrote: Does anyone have thoughts on how to kick off an e-mail on SSH login? If you wanted a somewhat extensible way to do it, Splunk can, the free version allows up to 500MB of data to be indexed per day.. Otherwise a script that monitors the log. Another way(not sure how reliable) is to

Re: [CentOS] E-Mail on SSH login?

2009-11-02 Thread Ray Van Dolson
On Mon, Nov 02, 2009 at 02:14:10PM -0800, ML wrote: Does anyone have thoughts on how to kick off an e-mail on SSH login? For security auditing purposes? You could probably do this by watching /var/log/secure, or even use something like pam_exec. Ray

Re: [CentOS] E-Mail on SSH login?

2009-11-02 Thread Bill Campbell
On Mon, Nov 02, 2009, Ray Van Dolson wrote: On Mon, Nov 02, 2009 at 02:14:10PM -0800, ML wrote: Does anyone have thoughts on how to kick off an e-mail on SSH login? For security auditing purposes? You could probably do this by watching /var/log/secure, or even use something like pam_exec. We

Re: [CentOS] E-Mail on SSH login?

2009-11-02 Thread Benjamin Donnachie
2009/11/2 ML mailingli...@mailnewsrss.com: Does anyone have thoughts on how to kick off an e-mail on SSH login? Make SSH use PAM for authentication and use the pam_preprofile[1] module to execute and appropriate script. You should test with public/private key logins to ensure that it also works

Re: [CentOS] E-Mail on SSH login?

2009-11-02 Thread Andrew Norris
ML wrote: Does anyone have thoughts on how to kick off an e-mail on SSH login? -Jason If you don't mind making the jump to syslog-ng it's fairly simple to filter ssh login lines to an external script that sends out emails. With stock syslog you could log auth to a named pipe and slurp that

[CentOS] E-Mail on SSH login?

2009-11-02 Thread R P Herrold
On Mon, 2 Nov 2009, ML wrote: Does anyone have thoughts on how to kick off an e-mail on SSH login? one assumes, without them being able to over-ride such notification, or even being aware of such ... inotify, watching that end user's directory for an atime change, comes to mind -- Russ

Re: [CentOS] E-Mail on SSH login?

2009-11-02 Thread Agile Aspect
On Mon, Nov 2, 2009 at 2:34 PM, Benjamin Donnachie benja...@py-soft.co.uk wrote: 2009/11/2 ML mailingli...@mailnewsrss.com: Does anyone have thoughts on how to kick off an e-mail on SSH login? Make SSH use PAM for authentication and use the pam_preprofile[1] module to execute and appropriate