Fixing kdesu problems in Kubuntu

There seems to be a bug in kdesu causing problems when using sudo instead of su.

Symptom: When trying to switch to admin mode in one of kcontrol’s (or systemsettings) modules, the process fails and presents you kcontrol’s main window (or the same grayed-out module in systemsettings).

To solve this more elegant than just calling kcontrol manually using kdesu (which actually works), you can do the following:

  • set password for root (sudo passwd)
  • add


    [super-user-command]
    super-user-command=su

    to either

    ~/.kde/share/config/kdeglobals

    or

    /usr/share/kubuntu-default-settings/kde-profile/default/share/config/kdeglobals

I also posted this to the ubuntu-forums, maybe someone else finds this useful.

8 Responses to “Fixing kdesu problems in Kubuntu”

  1. Charles Says:

    Thank GOD and you for telling me about this!!. Iv’e been stuffing around with the sudoers file for a week thinking I was doing something wrong. – I knew it had something to with kde just didn’t have a clue where and how to change it. Your a blessing, now I can get back to enjoying kubuntu.

  2. Luke Says:

    Dude, you are a freakin genious! Thanks for posting this! That kdesu issue was annoying the hell out of me for the longest time.

    The first thing I did after installing kubuntu was to rnable the root password. But I didn’t know about the kdeglobals line. How could the kubuntu testers miss something like a broken kdesu, that can be fixed in 1 line is beyond me.

  3. chimaera Says:

    Heh, thanks for the positive feedback! I’m pretty amazed that this bug still exits.. I posted this three months ago.

  4. Christopher J. Bottaro Says:

    Yeah, thanks. I just installed Kubuntu 6.06 and ran into this problem. Your solution worked like a charm…except that kdesu asks for the root password instead of the user’s password (a la sudo). That just a minor annoyance though.

  5. Incorrect Password; Please Try again « touch the sky… down to the earth Says:

    [...] Seperti di sini , tapi tidak berhasil [...]

  6. Wagner Says:

    Great!!!!!!!!

  7. marcos Says:

    sehr gut!

  8. Kartik Shah Says:

    I am using Kubuntu Hardy with KDE4. I tried the solution but still I have not been able to get kdesu to work. Are there any other specific changes I need to make for Hardy to make kdesu work

    Thanks a ton.

Leave a Reply