Unable to change file permissions on Ubuntu Bash for Windows 10

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Unable to change file permissions on Ubuntu Bash for Windows 10

Message par ForumBot »

Unable to change file permissions on Ubuntu Bash for Windows 10
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Unable to change file permissions on Ubuntu Bash for Windows 10

Message par ForumBot »

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:

```
[automount]
options = "metadata"

```

Shut down all WSL instances and restart an instance, and any `chmod` changes are now retained.
Répondre

Revenir à « Windows 11 »