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

immediate shutdown by permission denied #135

Closed
K4zuki opened this issue Dec 8, 2018 · 4 comments

Comments

@K4zuki
Copy link

@K4zuki K4zuki commented Dec 8, 2018

Condition

""

  • Windows 10 1803
  • wsltty 1.9.3 and 1.9.5
  • wsl.conf is edited as following
[automount]
root = /
options = "metadata,umask=22,fmask=111"

Problem

  • (as titled) it immediately closes
  • error message is as following
/bin/wslbridge: Exit 1.
wslbridge error: failed to start backend process
note: backend error output: /bin/bash: /c/Users/kyama/AppData/Local/wsltty/bin/wslbridge-backend: Permission denied
  • similar error message with #91 ("Not found" vs. "Permission denied")
  • seems mount option matter: removing 3rd line fixes(as fixed by #91)
@caksoylar

This comment has been minimized.

Copy link
Contributor

@caksoylar caksoylar commented Dec 8, 2018

I ran into the same issue today. Setting umask=22,fmask=111 removes the execute permission bit from files, see https://askubuntu.com/a/429858 for an explanation of values. You can do chmod +x /c/Users/kyama/AppData/Local/wsltty/bin/wslbridge-backend on the regular WSL terminal to allow execution.

@K4zuki

This comment has been minimized.

Copy link
Author

@K4zuki K4zuki commented Dec 8, 2018

chmod +x worked. thanks!

@K4zuki K4zuki closed this Dec 8, 2018
@mintty

This comment has been minimized.

Copy link
Owner

@mintty mintty commented Dec 8, 2018

@Biswa96: this seems related to the explicit placement of the backend for the sake of the appx version,
however the "normal" version wouldn't really need it.
If you copy wslbridge-backend to the WSL /bin directory, does it work then?
(Maybe not, because wslbridge now addresses the copy by absolute pathname, to be checked.)

@Biswa96

This comment has been minimized.

Copy link

@Biswa96 Biswa96 commented Dec 8, 2018

The C# launcher in Appx package does place the wslbridge-backend in that path. Hence not related with mintty binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.