You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows build number: Microsoft Windows [Version 10.0.19041.329]
Your Distribution version: Ubuntu Release: 20.04
Issue in WSL2
Steps to reproduce
I have 2 PCs with same WSL2+ubuntu set up, and sharing my respective WSL home directories (set to C:\Users\MyUserName\WSL_home) as \\PC{1,2}\WSL_home
Mounting the remote home dir in WSL works fine (permissions, ownership, file & directory CRUD, symlink following), except for symbolic link creation.
$ sudo mount -t drvfs '\\PC2\WSL_home\' /mnt/rhome -o metadata,uid=1001,gid=1001
$ cd /mnt/rhome
$ ln -s /mnt/c/Users/MyUserName nthome
ln: failed to create symbolic link 'nthome': Operation not permitted
$ touch dummyfile
$ ln -s dummyfile dummylink
ln: failed to create symbolic link 'dummylink': Operation not permitted
I have tried to mount local pc share (\\localhost\WSL_home) and do same steps as above, same outcome.
I have also tried combinations of running WSL as administrator or not, granting (or not) Symbolic Link Creation by policy, enabling (or not) symbolic link evaluations for remote to local & remote to remote symbolic link ; this on local and/or remote hosts. Same outcome.
Thanks for the heads up on mounting with cifs.
That does allow creating symlinks on the shared drive.
But those are Minshall+French links, not WSL symbolic links (or any kind of reparse point).
So they do not work on a WSL session run on the 2nd PC (where they appear as plain files "XSym ... ").
Environment
Steps to reproduce
I have 2 PCs with same WSL2+ubuntu set up, and sharing my respective WSL home directories (set to C:\Users\MyUserName\WSL_home) as \\PC{1,2}\WSL_home
Mounting the remote home dir in WSL works fine (permissions, ownership, file & directory CRUD, symlink following), except for symbolic link creation.
I have tried to mount local pc share (\\localhost\WSL_home) and do same steps as above, same outcome.
I have also tried combinations of running WSL as administrator or not, granting (or not) Symbolic Link Creation by policy, enabling (or not) symbolic link evaluations for remote to local & remote to remote symbolic link ; this on local and/or remote hosts. Same outcome.
Strace gist for the dummyfile -> dummylink example, with \\localhost\WSL_home\ mounted as /mnt/rhome
Expected behavior
(WSL) symbolic link to be created.
Actual behavior
Cannot create symbolic link on mounted network share.
The text was updated successfully, but these errors were encountered: