<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
                # Have the system pause while all the mail elements
    load,
    <br>
    <blockquote type="cite"
      cite="mid:alpine.DEB.2.20.2103071728530.6375@maria.rogerprice.org">
      <blockquote type="cite">              sleep 60
        <br>
                    # and then run the script:
        <br>
                      sudo /usr/local/bin/reboot_notify
        <br>
        <br>
              Do you need to get root involved?  If a hacker can
        substitute his reboot_notify for yours, he gets full control.
        <br>
      </blockquote>
      <br>
      <blockquote type="cite">Being such a beginner, I didn't realize I
        was creating a problem with root...I took your advice and
        removed "sudo"...is that enough, or is there something else I
        should do for security?
        <br>
      </blockquote>
      <br>
                 Any script in rc.local is probably called by root, so
      it's best to follow the example of NUT itself and drop to a
      non-privileged with something like
      <br>
      <br>
                 sudo -u nut /usr/local/bin/reboot_notify
      <br>
    </blockquote>
    <br>
    I don't understand. I edited the rc.local script to what you
    indicated ( sudo -u nut ...) and now when the Pi reboots I don't get
    any messages. I'm afraid I'm too much of a beginner to see what you
    mean.<br>
    <blockquote type="cite"
      cite="mid:alpine.DEB.2.20.2103071728530.6375@maria.rogerprice.org">
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Nut-upsuser mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nut-upsuser@alioth-lists.debian.net">Nut-upsuser@alioth-lists.debian.net</a>
<a class="moz-txt-link-freetext" href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>