-
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 reading /mnt/c/Users/<user>/Cookies #2779
Comments
Please post your reproduction steps. |
@therealkenc I get the same issue as @ricardojrgpimentel . The only steps I take are:
This gives me the following output:
I am running a fresh install of Windows 10, and Ubuntu is the Linux distro I am using. |
You don't have access to those on Windows either. Go to Windows Explorer, paste Interestingly enough though, |
Is this UserVoice worthy as it might considered a new feature. I know I would love to see this capability. Learning NTFS-3G can do it sounds to me like it's a simple reach out to that team to get the repro steps for implementing it and making any possible tailoring to make it more specific to Windows 10. I'm actually now curious to see about running NTFS-3G inside Ubuntu on WSL to test this scenario out. Maybe when I have more time for it. |
Whether something is UserVoice worthy is in the eyes of the upvotes over there.
No that won't work per an oft-requested but currently unavailable feature, which I won't mention out loud because it doesn't have to do with the ask in the OP. But it starts with an F. |
Well thanks for the enlightenment. Thanks for your hint about the unavailable feature. I had upvoted that already due to other things awhile ago. Hopefully it's addressed by fall this year but I won't be holding my breath either. |
Why is this issue not resolved as "working as designed" / "not a bug"? If a user gets permission denied on the Windows side, why is there an expectation that the same user ("Windows identity") does not get the same permission denied from LInux? One of the key differences between a real-life Linux and WSL here is that a real-life Linux simply does not offer any security on reading NTFS, while WSL has a fully integrated identity system. If someone wants to break the identity / security system, using Linux in a virtual machine and then mapping the raw disk into that virtual machine would appear to be the right thing? |
Provisionally because you do technically have Windows permissions to resolve the link. You get reasonable behavior in Cygwin for example. There is no particular reason why the link shouldn't resolve in WSL as well. No identity system is "broken" by doing so. And, since this [The "provisionally" caveat is because one can call anything as-designed by fiat. This issue isn't tagged one way or another.] |
Interesting. cygwin bash:
Powershell:
I am my normal user self in both cases. |
And, again, powershell, this time on Ubuntu:
|
Nice experiments. In that last one (pwsh in Linux), whoever did that part of the port just opted for silence on " |
To add to the issue here is an excerpt from
the return value from I believe the behavior here to be incorrect. The The detail that the Alternatively, the permissions for these files should be presented as 000, |
I was going to suggest that but I think I lost by train of thought at the time I wrote my post. Thanks for framing the behavioral change request in concrete terms. I think abstracting it further might run into separation of concerns problems. For now it would be enough if WSL didn't cause |
@therealkenc is there a way to hide the error message? I know this is caused because ls is trying to accessing information without permission when doing the coloring. as long as I can hide the error message, i think it's fine. thank you! |
Not without resorting to relatively extreme measures. Recompiling |
@therealkenc I actually find a way to do that, by alias ls='ls 2>/dev/null'. I'm leaving it here in case someone searches for a workaround. Thank you anyway. |
That's not a bad blunt instrument actually, since any other errors |
It's worth noting that this bug indirectly breaks Jupyter Notebook when run from a user's home directory. Documented workarounds can found in the issue thread, but unlike this issue as it manifests with the |
It's a bug. If its attached to my files system (in my case, a cryptomator mounted folder on the Windows side) and they are in all ways mine, I should be able to list it. |
I am using my windows home folder as my WSL home, I made this ls() {
ls_opts="-h --color=auto"
if [ $# -eq 0 ]; then
if [ "$PWD" = "$HOME" ]; then
ls_opts="$ls_opts --hide='ntuser.*' --hide='NTUSER.*'"
fi
eval command ls "$ls_opts" '"$@"' 2>/dev/null
return 0
fi
eval command ls "$ls_opts" '"$@"'
} this makes this behavior more pleasant to deal with. |
how to use that? |
Just paste the function into your |
You might want this too: # remove background colors from dircolors
eval "$(dircolors -p | \
sed 's/ 4[0-9];/ 01;/; s/;4[0-9];/;01;/g; s/;4[0-9] /;01 /' | \
dircolors /dev/stdin)" |
On Firstly create the file: In
|
Thanks for pinging this one. I was hoping this would resolve itself in WSL 2 with the new 9p But now that we have Linux CIFS for reals, it did make me wonder how the Windows SMB server deals with those symlinks. Rather than present the files as " So I guess a reasonable new ask is: "make 9p behave like SMB." |
That's actually a half-interesting data point. It isn't colors. It happens any time the
|
The |
I know this is old but...
|
On bash when i try to do the command ls i get the following message:
Im on version 10.0.16299.125
The text was updated successfully, but these errors were encountered: