To setup email notification, login to your server as root.
Edit .bashrc
vim .bashrc
add the following line at the end, changing "ServerName" to the host-name of
your server and "[email protected]" to your own email address.
echo 'ALERT - Root Shell Access (Server-name) on:' `date` `who` | mail