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.
-
Hi I'm running a script using a self hosted github action runner but when I try to run a
sudo
command I get the error:So I checked SystemD Service defintion and found
NoNewPrivileges=true
so I changed it tofalse
and restarted the service.But I still get the same error, are there any other settings that could stop me from running
sudo
commands?The SystemD service Definition is below:
I have configured some
sudo
commands 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 thesudo
commands.Beta Was this translation helpful? Give feedback.
All reactions