Simply edit the .bash_profile in the users directory (in this
case "root") by...
1. Make sure you are logged in as root (e.g. su -)
2. Change to roots home directory by typing "cd" (only
cd, nothing else, e.g. no further slash!)
3. Edit your bash profile by typing "pico .bash_profile
"
4. At the end of the file add the following line:
echo 'ALERT - root access on: ' `date` `who` | mail -s "ALERT:
root access on server SERVERNAME" webmaster@isp.com
Be sure to replace SERVERNAME with the name of your server (important
if you have more than one) and to replace "webmaster@isp.com"
with your email address - preferrable an off-server email address.