Default kdesu to use sudo and not su
Have you recently installed openSUSE 11.0 and added:
username ALL=(ALL) NOPASSWD: ALL
Into your /etc/sudoers files, only to find out now when you launch yast it still prompts for a password?
The issue is actually that kdesu was switched from using sudo to su when elevating priviledges. This was not the behavior in openSUSE 10.3 and earlier versions of 11.0 (RC / Beta etc).
To restore this configuration you can running the following command:
kwriteconfig –file kdesurc –group super-user-command –key super-user-command sudo
Hope this actually helps someone.
14 Comments to Default kdesu to use sudo and not su
What can i say? Thanks, many thanks.I missed this very much.
[...] How to solve kdesu´s prompt for a password in openSUSE 11.0 "Have you recently installed openSUSE 11.0 and added: username ALL=(ALL) NOPASSWD: ALL Into your /etc/sudoers files, only to find out now when you launch yast it still prompts for a password?" Ben Kevan’s Blog > Default kdesu to use sudo and not su [...]
July 8, 2008
It didn’t work on my system
openSUSE11, using KDE 4.1 beta if that makes any difference. But thanks for trying :).
July 8, 2008
Thanks a lot, I had the same annoying problem. For “copy and paste” users, please replace the “–” with “–” in your command.
July 8, 2008
Thank you for pointing that out Tom.
Blake, and others using this.. please note that - in front of group and key are actually 2 dashes
- - and not just one dash - (there is no space inbetween them)
Blake:
cd ~/.kde4/share/config
edit kdesurc
Add this lines:
[super-user-command]
super-user-command=sudo
Work on my opensuse 11.0 KDE 4.0 ![]()
[...] leido en un post de Ben Kevan, en el que comenta que en versiones anteriores de openSUSE, kdesu utilizaba sudo en vez de su para [...]
July 8, 2008
thanks for the tip! it works!
Thank you!!! That was driving me crazy! ![]()
July 8, 2008
Loni from http://forums.opensuse.org posted this:
Did some research, discovered I have TWO versions of kwriteconfig (and
others!) installed, one for kde3, another for kde4. imagine it’s because
I’m running 3.5.9, but with some 4.x apps, so I get both runtimes.
This can cause issues, because the two programs use slightly different syntax,
the KDE4 kwriteconfig app uses single dash ‘-’ for options while the KDE3
version uses double-dash ‘–’. grrr!
Better solution is to actually create the file entry that command is
*supposed* to be doing.
look in .kde/share/config and .kde4/share/config for a file named ‘kdesurc’.
If it doesn’t exist, create a new file named ‘kdesurc’.
Add these two lines to the file:
[super-user-command]
super-user-command=sudo
I did both .kde and .kde4 to make sure I catch whichever kdesu is called (v3
or v4).
This has worked for me, on both 32bit and 64bit systems, opensuse 11.0, KDE
3.5.9 installs. Should also fix KDE4.x systems.
Loni
Thanks for that update Loni..
August 27, 2008
Doesn’t seem to work. It accepts the suoder password but no application is launched when typed from the shell( example kdesu /sbin/yast2 ) it just sits there. If I launch it from root it opens.
September 9, 2008
JP,
Make sure you use double - and not a single -. Wordpress puts a double - into a single -.. so copy and paste will not work.
I’ll have to fix this when I have time.
Thanks
[...] in openSUSE 11.0 - openSUSE Forums …then the easiest way is to follow the instructions here: Default kdesu to use sudo and not su | Ben Kevan’s Blog It depends on which version of KDE you are using (if you are using KDE of course!), It makes the [...]
[...] for your explanation but didn’t work. In this link i have the solution for KDE, but not to GNOME. Default kdesu to use sudo and not su | Ben Kevan’s Blog [...]
Leave a comment
Search
Powered by
Tags
10.3 11.0 11.1 apache bash beta bootchart codeweavers compiz drivers emerald emulation esx fat ass tomato man filesystems flash fonts gnome grub ibm kde kde4 kernel knoppix linux lotus notes lvm Microsoft nomad nvidia openoffice opensuse performance repositories review scripting security tech tutorial ubuntu user management VMWare windows wine workstationArchives
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- February 2008
- January 2008
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
Ben Kevan's Blog
- Connecting to Linux via RDP using NOMAD on openSUSE 11.1
- Red Hat (RHT) Profits Soar, is Novell (NOVL) Next?
- Dropping KDE 3.5 for openSUSE 11.2 isn’t really a bad thing
- 5 Days on openSUSE 11.1 was an early X-Mas present
- Unexpected Downtime
- Amarok 2.0 Final Released - Shipping with openSUSE 11.1
- PCLinuxOS 2009 Beta 2 - Review, Thoughts and Screenshots
- Opera 10.0 Alpha 1 on openSUSE 11.1 - Review
- Ding Dong the Emeralds Back Compiz
- 11.1 Build Service Repositories being Built
July 8, 2008