-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
openssh-askpass hangs on Manjaro Linux #783
Comments
This isn't a known issue to me, so I'm very thankful that you're bringing this up. The reason that you couldn't find where the askpass binary is called is because it's called by I'll gladly merge whatever updates to the docs you find are needed to make the Nerves tooling work better with Manjaro work. The ideal solution would be that |
Thank you for clarifying, that helped a lot. I didn't know anything about how Tinkering with it some more, I've noticed that the I guess I should've read the documentation better, because I just found out there is an explicit reference to an alternative askpass package. I think you're right that the ideal solution would be to forgo the askpass dependency completely, and let the user fill in a sudo password in the terminal. If the |
This has been a longstanding problem with invoking If you're interested in making progress in this area, I think we should start a proof-of-concept project where we can try different ways out and see what works the best. I think that it's doable. |
Environment
elixir -v
): 1.13.4AUR package openssh-askpass
: 2.1.0-3Current behavior
While trying out nerves on a fresh Manjaro installation (version
21.3.7
) I'm unable to runmix burn
due to a problem with ask-pass. As documented I have installed theopenssh-askpass
AUR package, and the askpass binary is available at/usr/bin/qt4-ssh-askpass
. Since this is not in the default location (which would be/usr/bin/ssh-askpass
) I set theSUDO_ASKPASS
environment variable first to point to this location. With this setup the burn command hangs at the point where it should ask for a password (after having confirmed which SD card to burn to).Output:
I use a workaround by installing either the package
lxqt-openssh-askpass
orx11-ssh-askpass
and pointing to the respective binary inSUDO_ASKPASS
(/usr/bin/lxqt-openssh-askpass
or/usr/lib/ssh/x11-ssh-askpass
). This works fine and prompts the root password as expected.Note that invoking the binary
/usr/bin/qt4-ask-password
directly works and prompts for a password, but an error is logged:I've heard of someone else having a similar problem on NixOS, although I can't reproduce that exact setup.
This might be just a known issue, but then I would suggest to update the docs to give some more guidance for whoever is in a similar boat.
Also, I'm not sure how to investigate this, as I can't find the exact location where the askpass binary is called. I only see where environment variable is updated, when it's not already set: https://github.com/nerves-project/nerves/blob/main/lib/mix/tasks/burn.ex#L130-L133
Expected behavior
Good integration with the suggested openssh-askpass AUR package for Arch based systems.
The text was updated successfully, but these errors were encountered: