Replies: 4 comments 2 replies
-
@connerbw not sure why you'd want to change permissions in
|
Beta Was this translation helpful? Give feedback.
-
@elsaco the important part is under the Repro steps please re-read?
|
Beta Was this translation helpful? Give feedback.
-
Why:
Similar issues:
Not sure why this was converted into a "discussion" ... 👎 |
Beta Was this translation helpful? Give feedback.
-
@sebble Good workaround. @connerbw
I'm assuming that it was converted into a discussion because it isn't a bug -- It's expected behavior. WSL runs at the permission level of the Windows user. As such, changing files in Much better and safer to use @sebble's workaround. |
Beta Was this translation helpful? Give feedback.
-
Version
Microsoft Windows [Version 10.0.22000.708]
WSL Version
Kernel Version
Linux version 5.10.16.3-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Fri Apr 2 22:23:49 UTC 2021
Distro Version
Ubuntu 22.04
Other Software
N/A
Repro Steps
My
/etc/wsl.conf
is:When I run wslsys I get:
No problem, I think to myself, I'll just run as administrator and do:
Expected Behavior
I can change the exec permission.
Actual Behavior
chmod: changing permissions of '/mnt/c/Windows/System32/reg.exe': Permission denied
Diagnostic Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions