How can i make my ubuntu server (with no enabled root account) to report of sudo usage via e-mail?
For example, in CentOS installation i use
Code:
echo 'ALERT - Root Shell Access:' `who` | mail -s "Alert: Root Access from `who | awk '{print $6}'`" mymail@mymailserver.com
in root .bash_profile to report of root login.