Execute commands with sudo #25981
-
Hi, I have a GitHub action set on self hosted Ubuntu VPS on Linode.
Please help, thanks. I also need to setup 2 more runners on the same server and same setup. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The command in your workflow file is not the same as the one in your Also, is the user your runner runs as in the |
Beta Was this translation helpful? Give feedback.
-
Yes, thanks for pointing that out, everything works as expected now, is it permissible to run two more runners in the same account and VPS? Also
I didn’t get that advice, could you please elaborate a little? |
Beta Was this translation helpful? Give feedback.
-
takasurazeem:
It’s a security rule to give each process as little rights as possible, to minimize the damage in case of compromise or bugs. On most systems adding the runner to the Regarding the questions about runner details I hope someone with experience on that matter can chip in. |
Beta Was this translation helpful? Give feedback.
The command in your workflow file is not the same as the one in your
sudoers
file,sudo
doesn’t know they are functionally equivalent. Usetwentydb.service
in the workflow, too.Also, is the user your runner runs as in the
sudo
group? If not, that entry won’t apply to it. However I’d suggest using a separate entry for the user rather than adding the runner to thesudo
group.