Greetings,

many thanks for the various replies, they all helped in a way :-)

On Wednesday, 2026-02-04 11:06:54 -0800, Darren Kirby wrote:

> ...
> This page[0] briefly describes how to setup email logging for sudo. ‘man 5
> sudoers’ is more comprehensive, but also more difficult to parse the relevant
> information from.
> ...
> [0] https://www.cyberciti.biz/faq/sudo-send-e-mail-sudo-log-file/

Well,  this URL points to a site  explaining how to set-up  "sudo" so it
DOES send mail, while my goal is to PREVENT "sudo" from sending mail be-
cause I'm the only non-root user on my laptop and the only user in group
"wheel" anyway.  But your second suggestion, to take the trouble plough-
ing through  "man 5 sudoers" helped:  under the zillions  of options for
the "Defaults" instruction  I eventually found option "mailto" which ei-
ther takes a mail address as argument or can be prefixed with "!" in or-
der to prevent mailing altogether.

So I just created a new file in directory "/etc/sudoers.d/" containing
the line

   Defaults !mailto

Sincerely,
  Rainer

Reply via email to