cPanel / WHM / Centos server root login alert to your email address:
open bashrc file and and the following line at the end of the file
vi /root/.bashrc
echo 'ALERT - Root Shell Access ( server.ajeesh.com )on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d'(' -f2 | cut -d')' -f1`" ajeesh@xxxx.com
open bashrc file and and the following line at the end of the file
vi /root/.bashrc
echo 'ALERT - Root Shell Access ( server.ajeesh.com )on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d'(' -f2 | cut -d')' -f1`" ajeesh@xxxx.com
No comments:
Post a Comment