monitoring login
Fernando Duran
liberosec-FFYn/CNdgSA at public.gmane.org
Sun Oct 10 14:58:50 UTC 2010
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
Cheers,
Fernando Duran
http://www.fduran.com
----- Original Message ----
> From: Rajinder Yadav <devguy.ca-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org>
> To: tlug-lxSQFCZeNF4 at public.gmane.org
> Sent: Sun, October 10, 2010 12:47:23 AM
> Subject: [TLUG]: monitoring login
>
> how can i send out a email whenever someone logs into a linux box or even
>attempts to? what are some of the methods and practices you guys use? thanks!
>
> -- Kind Regards,
> Rajinder Yadav
> --
> 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
>
--
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