Configuration of sudoers file

Eric eric.linux at t-online.de
Sun Jun 30 01:30:21 EDT 2002


Greetings!

I'm trying to set up sudo to send an email whenever su is run.  Using sendmail 
on the command line I'm able to send myself an email so I know sendmail is 
running ok.  I'm running Suse 8.0.

Here are the lines I've added to the sudoers file:

Defaults:mail_always true
Defaults  mailerpath="/usr/sbin/sendmail"
Deraults  mailto=("eric.linux at t-online.de")

In the samples section of sudoers:

eric linux=NOPASSWD: /the program I want to run

When I invoke su on the command line and give it a bad password no email is 
sent.  Any ideas?

Eric




More information about the sudo-users mailing list