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=suto 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.

January 20th, 2006 at 8:05
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.
January 20th, 2006 at 16:57
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.
January 20th, 2006 at 17:26
Heh, thanks for the positive feedback! I’m pretty amazed that this bug still exits.. I posted this three months ago.
June 19th, 2006 at 20:02
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.
October 27th, 2006 at 3:54
[...] Seperti di sini , tapi tidak berhasil [...]
March 16th, 2007 at 7:15
Great!!!!!!!!
April 2nd, 2007 at 16:13
sehr gut!
April 9th, 2008 at 4:17
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.