sudo mail notification

Galen Johnson Galen.Johnson at
Wed Oct 15 16:23:33 EDT 2003

First, you may want to read the man page for sudoers.  You should be able to see what is wrong with the defaults you are setting.  I believe all you need to do is remove the mailerpath since it should default to that, change mailto to mailto=" at" and add 'Defaults mail_always=on, logfile=/var/log/sudo.log, log_year'


-----Original Message-----
From: Luis de Sousa (KI/EAB) [ at] 
Sent: Wednesday, September 17, 2003 5:43 AM
To: 'sudo-users at'
Subject: sudo mail notification

probably a stupid question, but I'm new with sudo and haven't find the answer to my question anywere. ( I don't seem to understand the syntax explained in the manual).
I've installed sudo, V. 1.6.3p5, on an SUN server running Solaris 8. I've configured the /etc/sudoers file and it's no problem running the commands in the sudoers file as sudo. However, I which to get a notification mail every time some user executes a command as sudo, and I don't get it to work.
Are there any kind soul that can give me a hint?
Here is my sudoers file,
# sudoers file.
# This file MUST be edited with the 'visudo' command as root.
# See the sudoers man page for the details on how to write a sudoers file. #
# Host alias specification
Host_Alias     SERVERS = erics016
# User alias specification
User_Alias     PARTTIMERS = netsim
# Cmnd alias specification
Cmnd_Alias     X25 = /opt/SUNWconn/x25/*
# Defaults
Defaults        logfile=/var/log/sudo.log, log_year
Defaults:mail_always true
Defaults        mailerpath=/usr/lib/sendmail
Defaults        mailto=" at < at> "
# User privilege specification
PARTTIMERS     ALL = NOPASSWD: /opt/SUNWconn/x25/bin/*
Best regards,
Luis de Sousa

sudo-users mailing list <sudo-users at>
For list information, options, or to unsubscribe, visit:

More information about the sudo-users mailing list