1. Launch Ubuntu WSL
  2. Create the file /etc/wsl.conf if it doesn’t exist
  3. Open the file (e.g.: nano /etc/wsl.conf) and add the following lines:
    [automount]
    options = "metadata"
    
  4. Save the file and shutdown WSL launching wsl --shutdown from a PowerShell
  5. Relaunch Ubuntu WSL

The metadata option allows Windows to support Linux system permissions: now all chmod/chown-related stuff will work correctly!

posted on 2021-11-08 10:11  AraonCode  阅读(2331)  评论(0)    收藏  举报