Friday, April 26, 2013
2:50 PM

Setting Root login email alert on a Linux server

How to set up a root login alert

 vi /root/.bashrc
 echo ‘ALERT – Root Shell Access MY  SERVER on:’ `date` `who` | mail -s “Alert: Root Access from `who | cut -d”(” -f2 | cut -d”)” -f1`” email@gmail.com

0 comments:

Post a Comment