-
Hi, I'm wondering why would this happen: Suppose there is a file on windows. If you type
Is there any way to prevent wsl from modifying file permissions? |
Beta Was this translation helpful? Give feedback.
Answered by
FR13ndSDP
Mar 13, 2022
Replies: 1 comment 1 reply
-
By default, the file system mounted to WSL has permission [automount]
enabled = true
root = /mnt/
options = "metadata,fmask=133,dmask=022" |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
FR13ndSDP
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By default, the file system mounted to WSL has permission
777
, so file copied from windows to WSL is excutable. Change the options in\etc\wsl.conf
would help: