A lot of folks have had an issue with their password not being accepted by KDESU in certain applications like Discover, Muon, and Ksystemlogs. I am one of them. It has taken a major amount of searching to find the correct answer, as most fixes are either way out of date, or do not conform to the "Kubuntu way". So I thought I would post the solution here so it is not buried deep within an older thread.
I have not yet been able to determine what is causing the problem, but I did discover one fix that actually works. You need to create the file "kdesu" in /etc/sudoers.d and add the following line:
Defaults!/usr/lib/*/libexec/kf5/kdesu_stub !use_pty
CLI instructions:
$: cd /etc/sudoers.d
$: sudo touch kdesu (enter user password)
$: sudo pico kdesu (or use kate from Dolphin) (enter user password)
Add the line "Defaults!/usr/lib/*/libexec/kf5/kdesu_stub !use_pty" (without the quotes) and save (in Pico its "<ctrl>o" to save, <ctrl>x to quit).
Reboot.
This is a significant PITA and I have no idea if there are any security implications. The seems to be a debian issue. If you have a better way to accomplish this in 22.04 and KDE 5, please feel free to comment below and I will test and add the solution here.
Cheers
I have not yet been able to determine what is causing the problem, but I did discover one fix that actually works. You need to create the file "kdesu" in /etc/sudoers.d and add the following line:
Defaults!/usr/lib/*/libexec/kf5/kdesu_stub !use_pty
CLI instructions:
$: cd /etc/sudoers.d
$: sudo touch kdesu (enter user password)
$: sudo pico kdesu (or use kate from Dolphin) (enter user password)
Add the line "Defaults!/usr/lib/*/libexec/kf5/kdesu_stub !use_pty" (without the quotes) and save (in Pico its "<ctrl>o" to save, <ctrl>x to quit).
Reboot.
This is a significant PITA and I have no idea if there are any security implications. The seems to be a debian issue. If you have a better way to accomplish this in 22.04 and KDE 5, please feel free to comment below and I will test and add the solution here.
Cheers
Comment