Re: [go-cd] Re: run bash as root in wsl

2021-09-16 Thread Andy Bergh
Hi Jason, Thank you for the email. I basically do everything as root in the wsl (it's a safe environment :D). I start the server and agent as root (installed gocd as root as well), the script owner is root ect. I double checked these and still if I print "whoami" when the script is executed as a

[go-cd] Re: run bash as root in wsl

2021-09-16 Thread Jason Smyth
Hi Andy, I have never tried running Agents inside WSL (or WSL2) but my guess is that the script will run as whatever account the Go Agent service runs under. So if you want the script to run as root there are a few options: 1. Run the Go Agent service as root, 2. Grant the "go" user permission