sending email to admin instead of root (default)
Suzanne Levy
suzanne.levy at datamail.co.nz
Mon Feb 26 15:17:12 EST 2001
this is from my /etc/sudoers file
I commented out the mail_always cause it's a busy system and I was getting
too much crap - I still use it on my quieter systems.
for username insert the username you want and in that users home directory I
have a .forward file that contains the smtp address on our exchange server -
so the mail comes to the users ms outlook. Or you can use
username at domain.com.
Which version of sudo are you using - it will make a difference...
Defaults mailto=username
Defaults mail_no_user #sends a mail when a user who is not in the
sudoers file tries to execute a sudo command
#Defaults mail_always
Defaults mail_no_perms #sends a mail when a user tries to execute an
unauthorised command
Suzanne Levy
Open Systems Analyst
Interconnect Services
Datamail Limited
DDI 04 576 4070
Mobile 021 530 900
Email suzanne.levy at datamail.co.nz
www.datamail.co.nz
-----Original Message-----
From: John Lorenz [mailto:John.Lorenz at sylantro.com]
Sent: Tuesday, 27 February 2001 8:39 a.m.
To: 'sudo-users at courtesan.com'
Subject: sending email to admin instead of root (default)
Importance: High
FYI
I was hoping someone can shead some lite. I have been trying to re-direct
the email fro being sent to root at localhost. I want it to go to another
email address. Can somebody shead some lite on the syntax on how to set the
defaults for redirecting the email. I have gone through the man pages and
have not been finding much. When I set the defaulst it fails to save tells
me a syntax erro and or cmnd alias is not correct.
If someone could send me an example of the sudoers entry that would be
great.
John Lorenz
____________________________________________________________
sudo-users mailing list <sudo-users at courtesan.com>
For list information, options, or to unsubscribe, visit:
http://www.courtesan.com/mailman/listinfo/sudo-users
More information about the sudo-users
mailing list