Bug 396767

Summary: kdesu doesn't work when "use_pty" sudo option is enabled
Product: [Frameworks and Libraries] frameworks-kdesu Reporter: Ardith Metz <itgvkxsd>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=452532
Latest Commit: Version Fixed In: 5.109

Description Ardith Metz 2018-07-22 20:56:17 UTC
"use_pty" is sudo option which enhance its security[0] and is supposed to be enabled in future sudo release[1].

You can enable it by adding below toy sudoers config:
Defaults use_pty

[0] http://www.openwall.com/lists/oss-security/2018/06/12/2
[1] http://www.openwall.com/lists/oss-security/2018/06/12/4

Unfortunately after enabling it kdesu stops working. There is following message in comsole:
$ QT_LOGGING_RULES= kdesu -d -c echo

[ /build/kdesu/src/kdesu-5.48.0/src/stubprocess.cpp : 219 ]  Unknown request: "ok"
Comment 1 Justin Zobel 2023-01-19 00:19:08 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Bug Janitor Service 2023-02-03 05:01:29 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2023-02-18 03:47:31 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 4 Ardith Metz 2023-08-12 20:21:31 UTC
This issue was re-reported as https://bugs.kde.org/show_bug.cgi?id=452532 and finally fixed by https://invent.kde.org/frameworks/kdesu/-/merge_requests/30