[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: using kdesu on kubuntu
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2008-08-01 15:46:07
Message-ID: 200808010946.08026.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Thursday 31 July 2008, David Boosalis wrote:
> Hi
>
> I am using KDE4 on a PC-104 board that runs a instrument.  One of the
> screens allows them to set the IP address.  My thinking was that when they
> hit the 'Apply' button I would use the KDESu class to run a command.  But
> it always fails. I think it fails because I am using Kubuntu which uses
> sudo instead of su.

KDESu supports sudo for root ....

> Here is what I have:
>
>     if (enableDHCP) {
>       KDESu::SuProcess suProcess("david","/sbin/dhclient eth0");

shouldn't this be suProcess("root", "/sbin/dhclient eth0") or are you actually 
trying to run the process as user "david"?

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech


["signature.asc" (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic