Adding user nutmon to sudoers.d for sendmail

Hi there, in order to run NUT in unprivileged mode (as user nutmon) but still receiving mail messages in case of the UPS’s state changing, I’ve added the following config in /etc/sudoers.d/nutmon

nutmon ALL=(ALL) NOPASSWD: /usr/sbin/sendmail

Is that okay so far, respectivly, is that change better than running nut as root?

I think you might just have to add the nutmon user to the mail group in order to send emails. Or it should work already out of the box. sendmail does not have to run as root.

Oh yes, thank you :heart: That worked :slight_smile: