Timeline for x2 sudo commands cannot be executed in terminal
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 13 at 20:15 | vote | accept | nightcrawler | ||
| Oct 13 at 13:07 | comment | added | Henrik supports the community |
If the user is allowed to execute sh with sudo (as OP can do sudo su, he probably is) that will work, but in the case where strict permissions are applied to sudo, it's best not to rely on more commands. (you can of course say that I also add gpiofind to the list, but I'm assuming that would be on, in that case.
|
|
| Oct 13 at 12:26 | comment | added | terdon♦ |
Or sudo 'sh -c gpioset $(gpiofind PIN_36)=0'.
|
|
| Oct 13 at 12:13 | history | answered | Henrik supports the community | CC BY-SA 4.0 |