I want to mess with the permission (chmod, chown) of Windows directory files from the terminal on ubuntu running on WSl!
In WSL, even if you use the
chmod command with sudo authority, the permission does not change at all.
When mounting the Windows directory (
/ mnt / c), it seems that it cannot be done because there is no metadata setting.
$ mount | grep -i ^C: result: C:\ on /mnt/c type drvfs (rw,noatime,uid=1000,gid=1000,case=off)
etc / wsl.conf
$ sudo tee /etc/wsl.conf <<EOF >/dev/null [automount] options = "metadata" EOF
/ mnt / cor restart Windows
Command when you want to mount under
/ mnt / c directory of ubuntu under
$ sudo mount --bind /mnt/c /c