kvizz
August 1st, 2008, 06:40 PM
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 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.
For example, in CentOS installation i use 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.