4
I have added the below lines to /etc/sudoers.d/my_sudoers
Defaults mail_always
Defaults mailto="email@domain.com"
I get an email every time sudo
is run
How can i modify this so I only receive emails when particular people run sudo (Everybody except 2 users)
Thanks
I can't seem to get this to work? Syntax error for both User_Alias commands – Sirens – 2017-06-30T19:20:58.217
You'll have to provide more detail, specifically the exact line(s) you're trying to use along with the exact error message(s). – Gabe – 2017-07-13T14:58:33.757