<html><head></head><body>Su asks for nothing if executed as root . . . it already knows it has authority, so simply changes the user id the command is run as (as I recall, with "-c" to run a script).<br><br>- Tim<br><br><div class="gmail_quote">On March 7, 2021 2:01:34 PM CST, Roger Price <roger@rogerprice.org> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre dir="auto" class="k9mail">On Sun, 7 Mar 2021, Harlan Stenn wrote:<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">Why use sudo instead of su for this case?<br></blockquote><br>Wouldn't su ask for the login password?  This is not practical in rc.local.<br>In addition user nut doesn't have a login password.<br><br>Roger<hr>Nut-upsuser mailing list<br>Nut-upsuser@alioth-lists.debian.net<br><a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser</a><br></pre></blockquote></div><br><div class='k9mail-signature'>-- <br>Sent from my Android device with K-9 Mail. Please excuse my brevity.</div></body></html>