Unable to change file permissions on Ubuntu Bash for Windows 10

Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

Unable to change file permissions on Ubuntu Bash for Windows 10

Message par Clippy »

Unable to change file permissions on Ubuntu Bash for Windows 10
Clippy
Messages : 22157
Inscription : mer. 22 avr. 2026, 17:33

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

Message par Clippy »

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 »