Bug 351637

Summary: kdesudo stalls in non-standard sudo
Product: [Applications] kdesudo Reporter: Helio Loureiro <helio.loureiro>
Component: generalAssignee: Jonathan Riddell <jr>
Status: CONFIRMED ---    
Severity: minor CC: kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Proposed patch

Description Helio Loureiro 2015-08-23 09:01:23 UTC
We use a special tag on sudo, like this:

$ sudo whoami
Enter password:
root

When parsing prompt, kdesudo stalls.

Reproducible: Always

Steps to Reproduce:
1. Change sudo's password prompt.
2. Call a sudo for any command.
3. Verify it won't work on kdesudo


Actual Results:  
kdesudo stalls
Comment 1 Helio Loureiro 2015-08-23 09:02:27 UTC
Created attachment 94181 [details]
Proposed patch
Comment 2 Helio Loureiro 2015-08-23 09:03:14 UTC
Bug verified on Ubuntu 12.04 and 14.04.
Comment 3 Dan Dart 2018-08-07 11:33:37 UTC
Can confirm this is still an issue in Ubuntu 18.04 using:

sudo 1.8.21p2
Qt: 4.8.7
KDE Development Platform: 4.14.38
KDE su: 1.0

I don't think this particular patch will work in all cases, and needs to handle extra text to be inputted and the response to be passed to sudo.

What I did is use an extra prompt after the standard prompt (I installed libpam-google-authenticator) but I think it comes under the same use case.
Comment 4 Dan Dart 2018-08-07 11:37:32 UTC
Might be related to it not being maintained here: https://askubuntu.com/questions/1044354/kdesu-not-working

But it's still in use when running programs from the K menu like a partition manager for example - I wouldn't mind if this were to be replaced, but running something without a terminal using the GUI that needs root is still something that's needed.