UNIX / Linux: Send E-mail When sudo Runs

Posted on in Categories , , , , , , , , , , , last updated July 1, 2009

I‘m not told to use the root user to perform activities that do not require it. I’ve configured sudo for myself and for other web developers so that they can restart MySQL or Apache web server. How do I send email when sudo run by one of my user? How do I keep track of user login done via sudo command?