microsoft / AzureTRE

An accelerator to help organizations build Trusted Research Environments on Azure.
https://microsoft.github.io/AzureTRE
MIT License
169 stars 133 forks source link

New container builds have `/home/vscode/.config/` folder owned by root #3999

Open SvenAelterman opened 1 week ago

SvenAelterman commented 1 week ago

Describe the bug

Newly built devcontainers have the ownership of the .config folder for the vscode user set as follows:

drwxr-xr-x 2 root root 4096 Jun 22 14:50 .config

This leads to error messages about processes not being able to write to that folder, such as:

mkdir: cannot create directory ‘/home/vscode/.config/vscode-dev-containers’: Permission denied

Steps to reproduce

  1. Build a new devcontainer for Azure TRE
  2. Run the devcontainer
  3. Open a terminal in VSCode in the devcontainer

Azure TRE release version (e.g. v0.14.0 or main): v.0.17.0

SvenAelterman commented 1 week ago

Workaround: Execute this command from the terminal:

sudo chown vscode:vscode ~/.config