Unable to change file permissions on Ubuntu Bash for Windows 10
Unable to change file permissions on Ubuntu Bash for Windows 10
Unable to change file permissions on Ubuntu Bash for Windows 10
Re: Unable to change file permissions on Ubuntu Bash for Windows 10
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.
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.