Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2795

Change to the User Groups on the /mnt/d/website/directory (on the external drive D)

$
0
0

I am working on the Windows 10 with Docker Desktop so I have Ubuntu 20.04.2 LTS and WSL2 on the internel Disk C.My web site, laravel, is located on the external drive D (D:\websites\website\).

My user account, beginnerjdocker and my user group is beginnerjdocker

beginnerjdocker : beginnerjdocker

I added my user on the web group : www-data like this without problem.I tried add the gorup, [www-data] on my website directory D:\websites\website\with

sudo chgrp www-data MyFILE

or

sudo chown -R www-data MyFILE

but I didn't succeed.

Here are the details of my tests:On Ubuntu (windows terminal)

docker@Jhon : /mnt/d/websites/website$ sudo adduser beginnerjdocker www-data[sudo] password for docker : Adding user 'beginnerjdocker' to group'www-data' ... Adding user beginnerjdocker to group www-data Done.

I check it if it is true or not

id beginnerjdocker

and I saw :

... ,30(dip), **33(www-data)**,...

and I checked also Grep command-line of www-data

grep ^www-data /etc/groupwww-data:x:33

So it works until there.I would add the gorup, www-data on my website directory D:\websites\website\:

docker@Jhon : /mnt/d/websites/website $ sudo chown -R www-data /mnt/d/websites/website/docker@Jhon : /mnt/d/websites/website $ sudo chown -R beginnerjdocker:www-data /mnt/d/websites/website/docker@Jhon : /mnt/d/websites/website $ sudo chown -R www-data /mnt/d/websites/website/docker@Jhon : /mnt/d/websites/website $ sudo chgrp -R www-data /mnt/d/websites/websitedocker@Jhon : /mnt/d/websites/website $ sudo chgrp  www-data /mnt/d/websites/websitedocker@Jhon : /mnt/d/websites/website $ sudo chgrp  .docker@Jhon : /mnt/d/websites/website $ sudo chgrp  ./docker@Jhon : /mnt/d/websites/website $ sudo chown -vR www-data /mnt/d/websites/website/

Every time I have checked by ls -l nothing has changed :-(

total 284-rwxrwxrwx 1 beginnerjdocker beginnerjdocker 3810 Apr 20 12:13 README.mddrwxrwxrwx 1 beginnerjdocker beginnerjdocker 4096 Apr 20 12:13 app-rwxrwxrwx 1 beginnerjdocker beginnerjdocker 1686 Apr 20 12:13 artisandrwxrwxrwx 1 beginnerjdocker beginnerjdocker 4096 Apr 20 12:13 bootstrapetc...

Where I made the misakes? So how can I obtient this beginnerjdocker www-data on the directory of website ?

Thanks


Viewing all articles
Browse latest Browse all 2795

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>