[Nut-upsuser] Request For Additional Status Confirmation

Tim Dawson tadawson at tpcsvc.com
Sun Mar 7 23:02:11 GMT 2021


Actually, su nut -c <script> . . . or it just runs as root, since you have not given it any other userid . . .

On March 7, 2021 2:13:58 PM CST, Roger Price <roger at rogerprice.org> wrote:
>On Sun, 7 Mar 2021, Tim Dawson wrote:
>
>> 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).
>> 
>> - Tim
>
>Then « su -c "/usr/local/bin/myscript" nut » looks like the best choice.  Roger
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20210307/85d8299b/attachment-0001.htm>


More information about the Nut-upsuser mailing list