Install Breach Detector

Posted on Sunday March 13, 2016 by Eric Potvin

Make sure you get warnings or notifications if, by any bad luck, someone does happen to get root or got into your account. This will allow you to get the hackers ip address.

To enable this, simply edit the .bash_profile:

vi .bash_profile

And add the following line:

echo 'ALERT - ACCESS GRANTED on:' `date` `who` | mail -s "ALERT - ACCESS GRANTED from `who | awk '{print $6}'`"