<html><head></head><body>Actually, su nut -c <script> . . . or it just runs as root, since you have not given it any other userid . . .<br><br><div class="gmail_quote">On March 7, 2021 2:13:58 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, Tim Dawson wrote:<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">Su asks for nothing if executed as root . . . it already knows it has <br>authority, so simply changes the user id the command is run as (as I recall, <br>with "-c" to run a script).<br><br>- Tim<br></blockquote><br>Then « su -c "/usr/local/bin/myscript" nut » looks like the best choice.  Roger</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>