-
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
Symbolic Links: Operation not permitted #4104
Comments
Can repro, noticed when I ran |
Unfortunately, WSL 2 does not currently support NT symlinks that have an absolute target. This is something we're working to address. In the mean time, either recreate the symlink with a relative target if possible, or recreate it from inside WSL (which will create a WSL symlink which won't work in Windows, unfortunately). @trondhindenes That is actually not the same problem; those are back-compat symlinks with weird permissions on the Windows side, and WSL can't read them at all. That issue also exists in WSL 1 and probably won't be solved. |
|
Something similar started happening to me, but it is only when ls --colors=auto , which is the default in Ubuntu. And, it's only hidden symlinks in Windows, ones that aren't in the directory ( ie, only in my home directory ). If I do an 'ls' without color, I don't see the symlinks at all. And strangely, after giving an error, it does actually put the directory in the LS list ( which no other command line tools do - CMD and Powershell don't try to list them ). If I run as administrator, I still get the errors. Maybe this is a different issue and should be split out? To recap:
Examples are 'Cookies' 'Templates' 'Recent' 'NetHood' ... in my user directory. No other directories that I can find have these annoying kinds of directories. Happens in WSL1 and WSL2. |
It is, #2779. |
Microsoft Windows [Version 10.0.18362.592] / 4.4.0-18362-Microsoft #476-Microsoft Fri Nov 01 16:53:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux Confirming; links created using CMD's As an aside, Cygwin also creates "fake" links that only it can understand when its I'd assume not, but am wondering... is there currently a way to arrange or express a drive/folder not at/below C:\ as a relative link that both WSL and Windows Explorer can understand? I know |
You need to enable Windows Developer Mode so that Preconstruct can create symlinks - https://www.howtogeek.com/292914/what-is-developer-mode-in-windows-10/ This works for me 🫡 |
Your Windows build number: (Type
ver
at a Windows Command Prompt)Microsoft Windows [Version 10.0.18917.1000]
What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)
I use scoop and as such there are paths in my Path environment variable that include Windows symbolic-links.
WSL2 cannot follow these symbolic links.
Using the
fish
shell, for example spews errors when trying to search for commands under these paths.Additionally... if you were to try and follow a Windows symbolic link you get operation not permitted.
Ideally, Windows would allow non-elevated processes / shares to access symbolic links / paths. I do have Developer Mode enabled, as I understand that can allow symlink access without UAC elevation.
Fish example (note
current/
is a symlink):The text was updated successfully, but these errors were encountered: