Running sudo commands on selfhosted runner? #3576
Replies: 1 comment
-
|
It seems there are other settings that enable the NoNewPrivileges Source: Source: https://gist.github.com/ageis/f5595e59b1cddb1513d1b425a323db04 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I'm running a script using a self hosted github action runner but when I try to run a
sudocommand I get the error:So I checked SystemD Service defintion and found
NoNewPrivileges=trueso I changed it tofalseand restarted the service.But I still get the same error, are there any other settings that could stop me from running
sudocommands?The SystemD service Definition is below:
I have configured some
sudocommands that the user running the Service is allowed to run without providing a password, and i have verified that I'm allowed to run them without password by switching to the user and running thesudocommands.Beta Was this translation helpful? Give feedback.
All reactions