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

List:       kde-devel
Subject:    Re: using kdesu on kubuntu
From:       "David Boosalis" <david.boosalis () gmail ! com>
Date:       2008-08-01 16:01:39
Message-ID: 870c99310808010901t7a20c164v757dbc5588a96eaf () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Fri, Aug 1, 2008 at 8:46 AM, Aaron J. Seigo <aseigo@kde.org> wrote:

> 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"?


Oh that was a typo here.  Yes I used david and use david's password, as this
is how sudo works from the command line for me.  I guess I should set the
password for root as Guillame pointed out in a previosu email.

>
>
> --
> 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
>
>
>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> unsubscribe <<
>
>

[Attachment #5 (text/html)]

<div dir="ltr"><br><br><div class="gmail_quote">On Fri, Aug 1, 2008 at 8:46 AM, Aaron \
J. Seigo <span dir="ltr">&lt;<a \
href="mailto:aseigo@kde.org">aseigo@kde.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> <div class="Ih2E3d">On Thursday 31 July 2008, David \
Boosalis wrote:<br> &gt; Hi<br>
&gt;<br>
&gt; I am using KDE4 on a PC-104 board that runs a instrument. &nbsp;One of the<br>
&gt; screens allows them to set the IP address. &nbsp;My thinking was that when \
they<br> &gt; hit the &#39;Apply&#39; button I would use the KDESu class to run a \
command. &nbsp;But<br> &gt; it always fails. I think it fails because I am using \
Kubuntu which uses<br> &gt; sudo instead of su.<br>
<br>
</div>KDESu supports sudo for root ....<br>
<div class="Ih2E3d"><br>
&gt; Here is what I have:<br>
&gt;<br>
&gt; &nbsp; &nbsp; if (enableDHCP) {<br>
&gt; &nbsp; &nbsp; &nbsp; KDESu::SuProcess \
suProcess(&quot;david&quot;,&quot;/sbin/dhclient eth0&quot;);<br> <br>
</div>shouldn&#39;t this be suProcess(&quot;root&quot;, &quot;/sbin/dhclient \
eth0&quot;) or are you actually<br> trying to run the process as user \
&quot;david&quot;?</blockquote><div><br>Oh that was a typo here.&nbsp; Yes I used \
david and use david&#39;s password, as this is how sudo works from the command line \
for me.&nbsp; I guess I should set the password for root as Guillame pointed out in a \
previosu email. <br> </div><blockquote class="gmail_quote" style="border-left: 1px \
solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br> <font \
                color="#888888"><br>
--<br>
Aaron J. Seigo<br>
humru othro a kohnu se<br>
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA &nbsp;EE75 D6B7 2EB1 A7F1 DB43<br>
<br>
KDE core developer sponsored by Trolltech<br>
<br>
</font><br><br>
&gt;&gt; Visit <a href="http://mail.kde.org/mailman/listinfo/kde-devel#unsub" \
target="_blank">http://mail.kde.org/mailman/listinfo/kde-devel#unsub</a> to \
unsubscribe &lt;&lt;<br> <br></blockquote></div><br></div>



>> 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