Share via

WSL file access right problem

Anonymous
2023-10-29T18:49:26+00:00

Hello,

I recently installed Windows Server Datacenter 2022, installed the Docker-Desktop.exe application and then installed Ubuntu using the following command: wsl --install Ubuntu

I then launched Ubuntu and configured the first boot, then added my current user and root to the www-data group.

I did this to be able to access, from Windows Explorer, the WSL files located at \wsl.localhost.

I then set up docker-desktop to use the Ubuntu distribution.

The problem is that at startup I have access to the files, but as soon as I try to perform an operation on the files, I lose access rights.

I've also added a file in the following directory: /etc/wsl.conf which contains the following:

Enable extra metadata options by default

[automount]

enabled = true

root = /windir/

options = "metadata,umask=22,fmask=11"

mountFsTab = false

[network]

generateHosts = true

generateResolvConf = true

How can I keep access rights to files?

Windows for business | Windows Server | Directory services | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2023-10-30T03:18:46+00:00

Hello Stanislas JEANGEY,

Thank you for posting in Microsoft Community forum.

From the description above, I understand your question is related to WSL.

Since there are no engineers dedicated to WSL in this forum. in order to be able to get a quick and effective handling of your issue, I recommend that you repost your question in the Q&A forum, where there will be a dedicated engineer to give you a professional and effective reply.

Here is the link for Q&A forum.
Questions - Microsoft Q&A

Click the "Ask a Question" button in the upper right corner to post your question and select any****tag related to your products (because there are many Tags).

I hope the information above is helpful.

If you have any question or concern, please feel free to let us know.

Best Regards,
Daisy Zhou

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful