Open igor-gorlov opened 1 year ago
I'm not sure it's defined behavior to be able store native Windows "administrator" owned files when launching "outside-WSL" native Windows-binaries from sudo, from inside a unix-like environment like WSL.
It's not defined inside sudo itself (which is a project separate from WSL) and it's not defined in WSL, AFAIK.
I would start with the basic question: where did get that assumption from, that it is supposed to be like that?
Meaning, why do you think it's legitimate to be the expected behavior (as you suggested)?
Can you give a counter-example, e.g. from MSYS2 or Cygwin, where it does work like you describe unter "Expected Behavior"?
I don't know if this is a feature we will ever want to implement. You can try running wsl.exe
, using interop, and seeing if that meets your needs. I tried using net.exe session
from an admin, and a non-admin, wsl console and seemed to get the desired results.
Windows Version
Microsoft Windows [Version 10.0.19045.3324]
WSL Version
1.2.5.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.90.1
Distro Version
Debian 12
Other Software
No response
Repro Steps
admin
).root
:test.txt
) located at\\wsl$\debian\home\admin\
.Expected Behavior
Actual Behavior
Diagnostic Logs
No response