I have the following problem: I'm logged in as user joe (he is not in sudo group) and want to etherwake a remote box, called nuc, via an one-liner in an script. now, on an command line, I usually do 1. su - ron (ron is in sudo group) 2. and then sudo ether-wake -i enp3s0 <mac-address> && ping nuc etherwake needs root access I want to combine 1. and 2. and run the combined command out of an script, but I'm failling. I don't want to have user joe in sudo group Idea's ? _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue