Book
Of Zeus
Articles, Tutorials & Source Code
About
Contribute
© 2011-2025 Book of Zeus
All articles, code or tutorials listed on bookofzeus.com/ can be used as reference, links or as in a sharing matter without attribution.
You cannot copy whole tutorials (unless permission is given), either translating to another language.
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
By using and/or reading this site, you agree to our privacy policy and terms and conditions .
Install Breach Detector
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}'`" my-email@m-domain.com