For Root user login alert please add below code in .bashrc. Then logout and login again.
echo ‘ALERT – Root Shell Access `hostname` on:’ `date` `who` | mail -s “Alert: Root Access from `who | cut -d”(” -f2 | cut -d”)” -f1`” email@domain.com
2197 Total Views 1 Views Today
related posts
« How to connect wifi in linux tcpdump capture and reading in vi »