-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission Denied when writing to \\wsl$\... path even from elevated shell [wsl2] #4638
Comments
Maybe a feature: accessing |
Ah! Yeah now I understand what it's doing (using the default Linux user permissions), thanks. Changing the default user to PS Microsoft.PowerShell.Core\FileSystem::\\wsl$\test> set_default_user test root
PS Microsoft.PowerShell.Core\FileSystem::\\wsl$\test> wslconfig.exe /t test
PS Microsoft.PowerShell.Core\FileSystem::\\wsl$\test> set_default_user testroot
PS Microsoft.PowerShell.Core\FileSystem::\\wsl$\test> cp C:\wsl.conf .\etc\wsl.conf Even so, that's a bit inconvenient. It means I need to kill the WSL instance entirely (cos changing the default user doesn't work otherwise) if I want to do anything that needs |
We need a configuration option where "wsl$" ignores ownership and permissions; but preserves those I tried running notepad pluss "as admin" and then try to update an /etc file; BUT I could not get it to work |
"wsl$" is an excellent and wonderful new feature, but as always with everything LINUX, esoteric concerns for necessary compatibility gets in the way of practical functionality and usefulness. OF COURSE we must absolutely preserve ownership and permissions for the sake of compatibility and for the sake of proper usage and proper testing. BUT when a windows machine is a private dev working machine ; I hope we can try to avoid tripping over our own shoelaces. Practical usefulness predicates that we must try to find a way to work around this short sighted built-in limitation. After-all ON Linux 20-30% of most file-management activity is ADMINISTRATIVE and not work related productivity ( so this limitation that we are disusing ) puts a huge damper on the Thanks again for the great work. But Please do not put UN-needed and unnecessary HAND-CUFFS |
This file permission issue manifests itself in many ways. For embedded Linux development, the ability to run and configure Yocto and Buildroot is mandatory. Unfortunately neither build tool completes due to inexplicable file permission errors. Doing exactly the same on Mint19.3 completes with no issues. |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
There doesn't seem to be a way to modify the files from the Windows side. Is this a bug?
The text was updated successfully, but these errors were encountered: