PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, August 2, 2022

[FIXED] How to Overcome "Must not with Sudo" error in setting up Github Actions config on VPS

 August 02, 2022     github-actions, sudo, ubuntu, vps     No comments   

Issue

I am attempting to setup Github actions runner on my Ubuntu VPS and on step 3 where I have to set up the config.sh file, I get the error as : Must not run with Sudo and the process fails there. My root account is password protected though and I do not understand what is the issue here. But any what I am looking for is how to get through this problem. I am not actually deploying a serious app, this is all just for practice.


Solution

It's because you're running the commands as the root user. Either create a new user using sudo newuser {username} or run the command export {AGENT_ALLOW_RUNASROOT="1"} i recommend option 1 but both work just fine.



Answered By - Brandon Austin
Answer Checked By - Candace Johnson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing