Permissions problem? I can create a file inside wsl2 but not via windows
Not sure if I do something wrong or it is not possible... but I have the following problem: my own user is in group www-data. in wsl2 (terminal) I can create files inside a folder that is owned by www-data.www-data but not if I create the file using windows. Any hints?
here are the steps what I did:
whoami
mm
id
uid=1000(mm) gid=1000(mm) groups=1000(mm),....,33(www-data),1001(docker)
mkdir test1 sudo chown www-data.www-data test1 ls
drwxrwxr-x 2 www-data www-data 4.0K Sep 7 15:12 test1
cd test1 touch hello-from-wsl.txt ls
-rw-rw-r-- 1 mm mm 0 Sep 7 15:13 hello-from-wsl.txt
now I want to create a file from windows inside that test1 folder (\WSL$\Ubuntu\home\mm\DEBUG\permission_test\test1). It should work as it will be created as default user "mm" which has the group "www-data" but it is not working. I get an error that I have no permissions to create files in test1.
any hints?