Summary: | kde-plasma/ksshaskpass: Unable to extract keyFile from phrase "…" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Navid Zamani <navid.zamani> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Navid Zamani
2018-01-16 14:22:33 UTC
Oh, nevermind… this is only a problem when using ksshaskpass to for SUDO via a helper script. Because ksshaskpass in a horrible hackish way, assumes the string it is passed for prompt is precisely: ?/^Enter passphrase for (.*?)( \(will confirm each use\))?: $/ And "keyFile" seems to be taken from \1. Which is silly, and breaks using ksshaskpass for other things that can use askpass, like $(sudo -A) with /etc/sudo.conf having the option: Path askpass /usr/local/bin/ksudoaskpass I will probably file another bug for this in KDE’s own bug tracker, and post the link here, when I do. A workaround is to set (precisely!) export SUDO_PROMPT="Enter passphrase for sudo: " in your .bashrc or even better /etc/bash/bashrc.d/sudo-askpass.bash. Of course with Path askpass /usr/local/bin/ksudoaskpass in your /etc/sudo.conf. Just in case anyone with a similar problem finds this. |