SU & SUDO

Frode M. Døving frode at ubuntu.com
Sat Oct 7 16:33:40 UTC 2006


Lørdag 07 oktober 2006 02:47, skrev Scott:
> On Friday 06 October 2006 01:35 am, bluszcz at jabberpl.org
[cut]
> Enabling a root password and thereby allowing you to use "su" instead
> of "sudo" doesn't disable sudo, it just gives you both options.
>
> kdesu and has been patched to use sudo instead of su.  But if you'd
> rather (for consistency sake) use your root password in kdesu you can
> alter your sudoers file directing sudo to ask for the root password
> instead of the user password.
[cut]

Instead of hacking sudo you can make a file ~/.kde/share/config/kdesurc
with the contents:

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

That would make kdesu use su instead of sudo.
To make this configuration global: 
'sudo cp ~/.kde/share/config/kdesurc \ 
 /usr/share/kubuntu-default-settings/kde-profile/default/share/config/'


NOTE: I have not tested this in edgy. Used to work in dapper, not tested 
lately.

- Frode




More information about the kubuntu-users mailing list