Disabling compilers on linux webservers Securing PHP on CPanel systems
Jun 30

Root Access Notification:

This will inform you each time access is made to the root account:

In SSH:
Code:

cd /root

edit .bashrc and add the following at the end, for freebsd: edit .cshrc

Code:

echo -e “root access on `date`” ‘\n’ `who` | mail -s “Root Alert!” you@youremail.com

Daily Notifications:

Code:

cd /etc/cron.daily

contents of: pstree.cron
Code:

#!/bin/sh
LANG=en_US
pstree | mail -s “process report ” you@youremail.com

contents of: top.cron
Code:

#!/bin/sh
LANG=en_US
top -n1 | mail -s “top report ” you@youremail.com

contents of: last.cron

Code:

#!/bin/sh
LANG=en_US
last -25 | mail -s “login report ” you@youremail.com

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • Technorati
  • BlinkList
  • Live
  • Reddit
  • Slashdot
  • StumbleUpon

Technorati Tags: , , , , ,

Leave a Reply