I have a server set-up and I let somebody that I trust with a little bit of
sudo access have it. However, I also want an email anytime that they use
I know that I can use
Defaults mail_always to get an email anytime ANYONE tries to use
sudo, but I have a cron-job for OwnCloud that runs every 30 minutes and requires a
sudo -u www-data at the beginning of it. Obviously, I don't want an email every 30-minutes.
How can I always get an email just for 1 specific user?