Must not run with Sudo issue on AzureDevOps agent in Linux machines

This error occurs when we are trying to install an AzureDevOps agent using root as user and also for some other issues

Apply the below fix in the code below which will help you to solve this issue

export AGENT_ALLOW_RUNASROOT="1"

Once the above command is run you will able to run ./config.sh script again to install the agents in your linux machine

And you will get a message like the one shown below


You may also like...

5 Responses

  1. December 14, 2020

    … [Trackback]

    […] There you can find 62201 additional Info to that Topic: azuredevopsguide.com/must-not-run-with-sudo-issue-on-azuredevops-agent-in-linux-machines/ […]

  2. December 16, 2020

    … [Trackback]

    […] Read More Information here to that Topic: azuredevopsguide.com/must-not-run-with-sudo-issue-on-azuredevops-agent-in-linux-machines/ […]

  3. December 22, 2020

    … [Trackback]

    […] Info to that Topic: azuredevopsguide.com/must-not-run-with-sudo-issue-on-azuredevops-agent-in-linux-machines/ […]

  4. January 5, 2021

    … [Trackback]

    […] Find More Information here on that Topic: azuredevopsguide.com/must-not-run-with-sudo-issue-on-azuredevops-agent-in-linux-machines/ […]

  5. January 15, 2021

    … [Trackback]

    […] There you will find 17938 additional Information to that Topic: azuredevopsguide.com/must-not-run-with-sudo-issue-on-azuredevops-agent-in-linux-machines/ […]