Page 1 of 1

Non root user devcontainer permissions

Posted: Sat Jan 17, 2026 8:13 am
by andrew_finlayson
Hi there,

I am running the ESP-IDF in a VS Code devcontainer on a Windows host with WSL2 installed.

Every works perfectly if I run as root, however when I try to setup a non root user container I get what looks like permission issues when I run Build project process.

CMake Error: Could not open file for write in copy operation /opt/esp/idf/components/mbedtls/mbedtls/tf-psa-crypto/doxygen/input/doc_mainpage.h.tmp
CMake Error: : System Error: Inappropriate ioctl for device
CMake Error at /opt/esp/idf/components/mbedtls/mbedtls/tf-psa-crypto/CMakeLists.txt:77 (configure_file):
configure_file Problem configuring file

I have limited knowledge of Unix/Linux, but it looks like I don't have permissions to write to this (and probably other) folder as the non root user I created.

Any help would be great.

Thanks.

Andrew.