[sudo-users] Mail notification

Joe Leone Joe.Leone at Beacon.com.au
Wed Apr 20 02:16:15 EDT 2005

I have set up sudo and allowed specific user several commands.
I have set the default to log all sudo usage to a log file.
I would like a mail notification to be sent when certain users run sudo.
These users are defined in the configuration file. I do not want mail
when other users invoke sudo.

My current configuration is below.
Defaults               syslog=auth
Defaults               logfile=/<path to log file>/sudolog
Defaults               mail_always
Defaults         mailto=user at domain.com.au

This mails me every time anyone invokes sudo. Is there a way to exclude
mail being sent for cetain users
Thank Joe 

More information about the sudo-users mailing list