Azure / custom-script-extension-linux

Azure Custom Script Virtual Machine Extension :new:
Apache License 2.0
105 stars 31 forks source link

Run script as non-root user #191

Open krissura opened 2 years ago

krissura commented 2 years ago

reopening due to the provided solution earlier https://github.com/Azure/custom-script-extension-linux/issues/134 not working

adamcybersec commented 1 year ago

Also unable to run scripts without sudo. This would be a very helpful feature to build into the extension.

Use case: Azure DevOps Pipelines Agents install script requires non sudo.

Error: Must not run with sudo\n\n[stderr]\n\"\r\n\r\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot