Skip to content
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

CIFS / symbolic links #2144

Closed
strarsis opened this issue May 22, 2017 · 8 comments
Closed

CIFS / symbolic links #2144

strarsis opened this issue May 22, 2017 · 8 comments
Labels

Comments

@strarsis
Copy link

strarsis commented May 22, 2017

  • Your Windows build number:
    Microsoft Windows [Version 10.0.14393]

  • What you're doing and what's happening:

$ ln -s a b
ln: failed to create symbolic link 'b': Operation not supported
  • What's wrong / what should be happening instead:
    Working symbolic link is created.

A Windows shared folder is mounted in an Ubuntu system (CIFS).
Creating a symlink inside the mounted shared folder fails.
Can support for symbolic links over network enabled in the new Windows Subsystem for Linux?
CIFS supports Unix Extensions for supporting symbolic links among other Unix typical features.

@darkguy2008
Copy link

I'm having the same issue and this is important for me :(

@davidmaxwaterman
Copy link

I hit this trying to do web development where I am using bower link. It works in WSL, but I am using VSCode in Windows and so all my code is in /mnt/c/.... Since this doesn't work, VSCode gives an error:

Error: A system error occured (UNKNOWN: unknown error, stat 'c:\....')

I imagine I'd get the same problem with npm link (and I wonder if yarn has a similar mechanism).

[paths removed because they're irrelevant]

@strarsis
Copy link
Author

strarsis commented Jun 8, 2017

I access a shared folder on Windows using a Linux VM.
Currently I have to use a workaround which lets specific folders outside of the folder on a Linux file system that supports symbolic links: https://medium.com/@dtinth/isolating-node-modules-in-vagrant-9e646067b36

@sunilmut
Copy link
Member

Adding @SvenGroot to see if he can help out here.

@SvenGroot
Copy link
Member

There seem to be two different issues in this thread. The original poster is talking about creating symbolic links on an SMB shared mounted on real Ubuntu Linux with CIFS. SMB does allow the creation of NT symbolic links, but they can't be followed after creation using the default security policy (which I believe can be turned off, but in that case the links are followed on the server, which is very different than how Linux symlinks behave on network shares). SMB does not support creating the type of symbolic links that DrvFs in WSL uses, and that's not something I expect will change in the near future.

@davidmaxwaterman is describing a different problem, namely that WSL symlinks can't be followed by regular Windows applications. This is a problem we are looking at addressing in the future.

@strarsis
Copy link
Author

@SvenGroot: Concerning symlinks on SMB share -
creating them doesn't seem to be supported at all, not only following them after their creation:

ln: failed to create symbolic link 'b': Operation not supported

@SvenGroot
Copy link
Member

I was talking about NT symbolic links, created with "mklink" from the Windows Command Prompt. I don't think you can create those with CIFS.

@strarsis
Copy link
Author

On recent WSL (1) this works perfectly. I can create (soft) symlinks on native file system and on the *nix file system without any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants