LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   How do I get kdesu back? Kubuntu only offers kdesudo. (https://www.linuxquestions.org/questions/ubuntu-63/how-do-i-get-kdesu-back-kubuntu-only-offers-kdesudo-884811/)

CollieJim 06-06-2011 09:14 AM

How do I get kdesu back? Kubuntu only offers kdesudo.
 
I've just installed kubuntu 11.04, and it looks good.

I need kdesu, but only kdesudo appears to be offered. It is a poor substitute, lacking the "Ignore" button. It probably has one, since I found it has a --noignorebutton option to turn it off, but as the option is not used anywhere it appears that the kubuntu maintainers have set it as default.

I've done a bit of digging, and found kdesu hiding in
Code:

/usr/lib/kde4/libexec/kdesu-distrib/kdesu
Code:

# update-alternatives kdesu /usr/lib/kde4/libexec/kdesu-distrib/kdesu
made it available.

Problem solved. Hope this helps others...

Jim

On my system, kdesu hangs if my lowercase password is entered in uppercase.

EricTRA 06-12-2011 02:18 AM

Hi,

Good to hear you've found a solution. Have fun with Linux. Off the Zero Reply List.

Kind regards,

Eric

beerslayer 04-13-2012 02:05 AM

I know this is an old thread, but I thought this post was still relevant, on the chance that this information might help someone else out there:

I did find the kdesu program in the same place listed by CollieJim, but the update-alternatives command didn't work on my Kubuntu 10.10 (Maverick) system as given above.

What DID work was to run update-alternatives, but with a slightly different set of parameters:
Code:

user@machine:~$ sudo update-alternatives --config kdesu
(If I omit 'sudo ' from the beginning, the command displays correctly but cannot save any changes.)

That command brings up the following on my system:
Code:

user@machine:~$ sudo update-alternatives --config kdesu
There are 2 choices for the alternative kdesu (providing /usr/lib/kde4/libexec/kdesu).

  Selection    Path                                      Priority  Status
------------------------------------------------------------
* 0            /usr/bin/kdesudo                            100      auto mode
  1            /usr/bin/kdesudo                            100      manual mode
  2            /usr/lib/kde4/libexec/kdesu-distrib/kdesu  50        manual mode

Press enter to keep the current choice[*], or type selection number:

Simply press '2' and Enter, and the alternatives system remembers that choice as the default. Now 'kdesu' seems to run fine on my system.

CollieJim 04-13-2012 03:58 AM

Thanks for that, beerslayer. I'll try it next time I boot kubuntu. What I did get working hung if an incorrect password was entered.

craigevil 04-13-2012 01:30 PM

Not sure about kubuntu but on Debian all you need to do is

as root run
Code:

ln -s /usr/lib/kde4/libexec/kdesu /usr/bin/kdesu
Debian User Forums • View topic - HOWTO - get kdesu back to normal in KDE4 - http://forums.debian.net/viewtopic.php?f=16&t=40158

sotel 09-21-2012 08:34 AM

Quote:

Originally Posted by craigevil (Post 4652011)
Code:

ln -s /usr/lib/kde4/libexec/kdesu /usr/bin/kdesu

Bad idea. As you can see in your cited thread

Quote:

Originally Posted by craigevil (Post 4652011)
Debian User Forums • View topic - HOWTO - get kdesu back to normal in KDE4 - http://forums.debian.net/viewtopic.php?f=16&t=40158

the proper way to solve this is:
Code:

dpkg-reconfigure --priority=low kdesudo
Also
Code:

man update-alternatives
will give you more infos and the undestanding of update-alternatives. And why you should use this way.

craigevil 09-21-2012 10:16 AM

Quote:

Originally Posted by sotel (Post 4785810)
Bad idea. As you can see in your cited thread



the proper way to solve this is:
Code:

dpkg-reconfigure --priority=low kdesudo
Also
Code:

man update-alternatives
will give you more infos and the undestanding of update-alternatives. And why you should use this way.


Neat.
After almost 9 years of running I do know about update-alternatives.


All times are GMT -5. The time now is 02:02 AM.