Howto create desktop-icon which executes app as root?

Please post all general support questions for LXDE here.
Locked
Linuxhippy
Posts: 1
Joined: Sat Jul 17, 2010 12:43 pm

Howto create desktop-icon which executes app as root?

Post by Linuxhippy »

Hello,

I've an UMTS connection tool which needs to run as root in order to work properly.
KDE has an option "execute under different user" which the job well, when I click the icon I am asked for the root-password and the application is started as root.

Is there any workarround I can archive the same using LXDE?

I tried to set the setuid-bit and assign the tool to "root", however only the application itself is started as root - but all sub-processes such as pppd are again started as ordinary user process and fail.

Thank you in advance, Clemens
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: Howto create desktop-icon which executes app as root?

Post by Marty Jack »

Bearing in mind that the Exec key can contain anything, can you not rig up something with sudo or ktsuss as the command?

I'll also add this to my list of things to look at for "should we have this feature".
Locked