-
Your Windows build number: (Type ver at a Windows Command Prompt)
Microsoft Windows [Version 10.0.18363.535]
-
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 was trying to use WinSW to make a Windows service for a Bash script and got "Access is Denied." Then I tried to make a Windows service calling bash.exe -c script.sh in Visual Studio and the script did not run. Then I opened a shell as LocalSystem and yet again got the error "Access is Denied." To open a shell as LocalSystem, do the following:
Download Sysinternals PsExec64.exe
.\PsExec64.exe -i -s cmd.exe
bash.exe
wsl.exe
Access is denied. 🎊
-
What's wrong / what should be happening instead:
I assume it's supposed to prompt you to setup WSL as LocalSystem. I know my personal user's rootfs is in my %appdata%, so I assume LocalSystem would have to go through the setup. Perhaps LocalSystem needs a distro from the Microsoft Store. Maybe WSL is not meant to be used like this. To be fair, I am not sure what the intended behavior is.
-
Strace of the failing command, if applicable: (If some_command is failing, then run strace -o some_command.strace -f some_command some_args, and link the contents of some_command.strace in a gist here).
-
For WSL launch issues, please collect detailed logs.
Your Windows build number: (Type
verat a Windows Command Prompt)Microsoft Windows [Version 10.0.18363.535]
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 was trying to use WinSW to make a Windows service for a Bash script and got "Access is Denied." Then I tried to make a Windows service calling
bash.exe -c script.shin Visual Studio and the script did not run. Then I opened a shell as LocalSystem and yet again got the error "Access is Denied." To open a shell as LocalSystem, do the following:Download Sysinternals PsExec64.exe
Access is denied. 🎊
What's wrong / what should be happening instead:
I assume it's supposed to prompt you to setup WSL as LocalSystem. I know my personal user's rootfs is in my %appdata%, so I assume LocalSystem would have to go through the setup. Perhaps LocalSystem needs a distro from the Microsoft Store. Maybe WSL is not meant to be used like this. To be fair, I am not sure what the intended behavior is.
Strace of the failing command, if applicable: (If
some_commandis failing, then runstrace -o some_command.strace -f some_command some_args, and link the contents ofsome_command.stracein a gist here).For WSL launch issues, please collect detailed logs.