View Single Post
Old 01-24-2007, 06:17 PM  
_Rush_
Confirmed User
 
_Rush_'s Avatar
 
Join Date: Dec 2006
Location: Buenos Aires
Posts: 742
Quote:
Originally Posted by thonglife View Post
PHP Code:
At command prompt type:
pico .bash_profile

Scroll down to the end of the file 
and add the following line:

echo 
'ALERT - Root Shell Access on:' `date` `who` | mail -"Alert: Root Access from `who | awk '{print $6}'`" your@email.com

Save 
and exit. 
That is good stuff man.. Thanks!!!
np...

Please note that that's only for root.
__________________
No sig.
_Rush_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote