monitoring login

Rajinder Yadav devguy.ca-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Mon Oct 11 06:19:31 UTC 2010


On 10-10-10 10:58 AM, Fernando Duran wrote:
> Hi,
>
> I do this actually in my servers, by adding this line to /etc/profile:
>
>   echo "`whoami` logged in at `date` from `echo $SSH_CLIENT`" | mail -s
> "`hostname` login" me-hcDgGtZH8xNBDgjK7y7TUQ at public.gmane.org

i want something that will work from any account, even if someone 
creates a new account for a backdoor

what i would like is a way to monitor a login even systemwide and then 
have a script execute to fire off an email

>
> Cheers,
> Fernando Duran
> http://www.fduran.com
-- 
Kind Regards,
Rajinder Yadav | DevMentor.org | Do Good! ~ Share Freely
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list