Bug 351637 - kdesudo stalls in non-standard sudo
Summary: kdesudo stalls in non-standard sudo
Status: CONFIRMED
Alias: None
Product: kdesudo
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Jonathan Riddell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-23 09:01 UTC by Helio Loureiro
Modified: 2018-08-07 11:37 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Proposed patch (1.44 KB, patch)
2015-08-23 09:02 UTC, Helio Loureiro
Details

Note You need to log in before you can comment on or make changes to this bug.
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.