Bug 501921 - edit as root does nor work
Summary: edit as root does nor work
Status: RESOLVED WORKSFORME
Alias: None
Product: krusader
Classification: Applications
Component: general (other bugs)
Version First Reported In: 2.8.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-23 19:52 UTC by gay
Modified: 2025-06-10 03:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gay 2025-03-23 19:52:50 UTC
"edit as root" does not work OpenSuse 15.6, and some earlier versions.

The reason is that the script implementing this function assumes that ssh-askpass is in /usr/bin.
However, recent versions of OpenSuse  store it in /usr/lib/ssh.

A symlink in /usr/bin fixes the problem, but this should be correctly set up as part of the krusader installation process.


SUMMARY
edit as root does not work

STEPS TO REPRODUCE
see above


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Comment 1 Toni Asensi Esteve 2025-05-11 21:57:57 UTC
In https://forums.opensuse.org/t/ksshaskpass-installation-doesnt-install-any-bin-file/147276/3 someone wrote in 2021 (is not recent information):
    The installed “ssh-askpass” is actually a script, which should call “ksshaskpass” if you are running KDE. Otherwise it calls “gnome-ssk-askpass”. 

In https://packages.debian.org/en/sid/ksshaskpass I could read:
    interactively prompt users for a passphrase for ssh-add

    A front-end for ssh-add which stores the password of the ssh-key in KWallet. 
    
In https://packages.debian.org/en/sid/ssh-askpass-gnome I could read:
    interactive X program to prompt users for a passphrase for ssh-add

    This has been split out of the main openssh-client package so that openssh-client does not need to depend on GTK+.
so it looks like Krusader should not depend on "ksshaskpass" nor "ssh-askpass-gnome" nor a similar program.
    
I've tried Opensuse Tumbleweed and there was no "/usr/lib/ssh/ssh-askpass" but a "/usr/libexec/ssh/ssh-askpass", I've tried Kubuntu 25.04 and those files weren't found, although there was a "/usr/bin/ssh-askpass".
    
Using Kubuntu 25.04: if I go to Krusader, edit the "Edit as root" useraction and replace `SUDO_ASKPASS=/usr/bin/ssh-askpass` with `SUDO_ASKPASS="$SSH_ASKPASS"` and then I try to "Edit as root"... everything seems to work.
                    
Would you like to perform the same replacement, delete the symlink in `/usr/bin/` that you created, and tell us if "Edit as root" works for you then?
Comment 2 Bug Janitor Service 2025-05-26 03:47:30 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2025-06-10 03:47:24 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.