sudo mail notification
Galen Johnson
Galen.Johnson at sas.com
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="Luis.de.Sousa at ericsson.com" and add 'Defaults mail_always=on, logfile=/var/log/sudo.log, log_year'
=G=
-----Original Message-----
From: Luis de Sousa (KI/EAB) [mailto:luis.de.sousa at ericsson.com]
Sent: Wednesday, September 17, 2003 5:43 AM
To: 'sudo-users at sudo.ws'
Subject: sudo mail notification
Hi,
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=" Luis.de.Sousa at ericsson.com <mailto:Luis.de.Sousa at ericsson.com> "
# User privilege specification
PARTTIMERS ALL = NOPASSWD: /opt/SUNWconn/x25/bin/*
Best regards,
Luis de Sousa
____________________________________________________________
sudo-users mailing list <sudo-users at sudo.ws>
For list information, options, or to unsubscribe, visit: http://www.sudo.ws/mailman/listinfo/sudo-users
More information about the sudo-users
mailing list