LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-20-2006, 08:00 AM   #1
NordiC
LQ Newbie
 
Registered: Oct 2006
Posts: 6

Rep: Reputation: 0
send email when a certain user login through ssh


alright guys.
this probably seems to be a little bit odd question and it probably is.

here's my question.

when a certain user login through ssh, I want a email to be sent to me,
or maybe do another action. So anyone knows a way to make this happen?

have googled and searched forums, but cant really find any good answers.
and by the way, the system running is debian.

Thx in advance, nordic.

Last edited by NordiC; 12-20-2006 at 08:04 AM.
 
Old 12-20-2006, 08:23 AM   #2
asommer
Member
 
Registered: Mar 2003
Location: North Carolina
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
One of the ways you could do it is with swatch:

http://www.linuxjournal.com/article/4776

You'd just need to config it to look for the entries in /var/log/messages.

I've seen similar done with SEC:

http://simple-evcorr.sourceforge.net/

I'm pretty sure there are other realtime log monitoring utilities out there. These are just a couple I've come accross.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH - cannot login as 1 particular user pnellesen Linux - Networking 7 11-24-2006 11:25 PM
what are the things i need to send/rcv email to internet with user@domain.org? kublador Linux - Newbie 4 06-26-2006 04:12 AM
send email on login JJX Linux - Security 2 06-19-2006 07:17 AM
Pine won't send email, can't read inbox, I'm a new Fedora user SharpyWarpy Fedora 1 06-29-2005 07:43 AM
cant send email (using sendmail) to newly added domain user sirjosi Linux - Newbie 0 10-22-2003 01:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration