News for hackers. Stuff that matters.
Re:Sudo: Remove “This incident will be reported.” from user ... by jimmaswell on Saturday April 29, 2023 @02:27PM (#35755657)
I was surprised to start getting emails about my cron tasks once I set up my mail server. It's neat.
Re:Sudo: Remove “This incident will be reported.” from user ... by prmoustache on Saturday April 29, 2023 @04:29PM (#35756849)
I've always felt it was a very bad practice not to do it.

In a lot of companies but one they avoided it for fear of receiving emails. On that only company that did it, we made sure that mailbox was clean by actually having a look when cron scripts were crapping out or when users failed sudo repeatedly and contacted the users. It was a much better housekeeping than log on a box and see there are hundreds of unread emails but dismissing it like most do.

Re:Sudo: Remove “This incident will be reported.” from user ... by evilspammer on Saturday April 29, 2023 @04:34PM (#35756887)
I think it's a fear of _sending_ emails. You could accidentally trigger a cronjob that sends a bunch of emails and gets you put on spam filters. Error reporting for cron is, of course, important; but the builtin email reporting is best used for the local machine/network. A more flexible and robust solution calls out to an API that handles transactional emails/push notifications with debouncing, escalation policies, etc.
Re:Sudo: Remove “This incident will be reported.” from user ... by hiepph on Sunday April 30, 2023 @04:20AM (#35760621)
Well, it depends! Because what you need to see more often is errors. You don't want successful notifications "spam" more often than error notifications.