If you need immediate notification of root access.
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 -s "Alert: Root Access from `who | awk '{print $6}'`"
test@test.com
Replacing
test@test.com with your e-mail address.
Save and exit.
