Linux Security Enhancement: Automatic Email Notification On Root Login.
To make your linux box safer, you can add the following line to the end of your .bash_profile file under /root directory. You can use vi or pico to edit the file:
echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" root@gmail.com
replace root@gmail.com with your email address.
Popularity: 1%


















































