man vs. kdesu

Michael Hirsch mdhirsch at
Wed Oct 17 15:54:17 UTC 2007

On 10/17/07, Michael <mmorse757 at> wrote:
> I have read the man pages for both sudo and kdesu.  Their functions seem
> to overlap. In what situations would you use one instead of the other?

I think that kdesu is just a gui wrapper around sudo, so you can use
either.  However, in a graphical context you'll want to use kdesu.
For instance, running a command from <ALT-F2> will not give you a text
prompt for your password with sudo.  So use kdesu in that case.  Use
kdesu when calling a subprocess in a program bcause stdin/stdout may
not be useful.

OTOH, kdesu requires an X server, so if one is not available (say in a
virtual console, or over SSH if you didn't use X forwarding) use sudo.


More information about the kubuntu-users mailing list