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 usein root .bash_profile to report of root login.Code:echo 'ALERT - Root Shell Access:' `who` | mail -s "Alert: Root Access from `who | awk '{print $6}'`" mymail@mymailserver.com
Bookmarks