- Launch Ubuntu WSL
- Create the file
/etc/wsl.confif it doesn’t exist - Open the file (e.g.:
nano /etc/wsl.conf) and add the following lines:[automount] options = "metadata" - Save the file and shutdown WSL launching
wsl --shutdownfrom a PowerShell - Relaunch Ubuntu WSL
The metadata option allows Windows to support Linux system permissions: now all chmod/chown-related stuff will work correctly!
