vi /root/.bash_profile
echo 'ALERT - Root Shell Access (YourserverName) on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" you@yourdomain.com
or
echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | awk '{print $6}'`" youremail@yourmailaddress.com
Make sure that the e-mail address you use is not hosted on the server
Andrew Arumaithambi![]()



LinkBack URL
About LinkBacks


Reply With Quote




