30
If you're referencing files in the Windows file system, they do not, by default, retain Linux permissions. However, there's a way to enable that. Edit or create (using sudo) /etc/wsl.conf and add the following:
/etc/wsl.conf
代碼: 選擇全部
[automount]
options = "metadata"