[maemo-developers] Root Access for GUI App

From: Eero Tamminen eero.tamminen at nokia.com
Date: Wed Mar 14 17:17:52 EET 2007
Hi,

ext Michael Matalon wrote:
> The app that is needs to be run runs in the background with no 
> interaction from the user. The information is passed to a sqlite 
> database which is read by a gtk application which displays to the 
> screen. The background service needs to run as root in order to gather 
> the required information. This is where my delemah is.
>  
> I need to be able to rmmod the wlan driver  followed by insmod and 
> chroot. These should all run in the background.
>  
> Does that make it a bit more clear of what I am trying to do?

A third way to achieve this would be to have minimal server started
by init scripts as root.  It could e.g. listen on named pipe for
requests to do something (not command line commands :-)), but having
an extra process running all the time is bad also.


	- Eero

> Thanks
> Michael
> 
>  
> On 3/13/07, *Eero Tamminen* <eero.tamminen at nokia.com 
> <mailto:eero.tamminen at nokia.com>> wrote:
> 
>     Hi,
> 
>     ext Michael Matalon wrote:
>      > Thanks for the info, but my n800 is currently in R&D mode. I
>     would like
>      > to get my gtk app to run a command line app that needs root
>     privilleges
>      > to run... mainly because it needs to reinstall the wlan driver.
>      >
>      > Any suggestions on how to do this as painless as possible
>     (hopefully in
>      > the code of my app)
> 
>     Run the command line thing with sudo or set it suid root.
>     (note: scripts cannot be suid, only real binaries can)
> 
>     UI apps should not run as root (for several reasons).
> 
> 
>            - Eero
> 
> 


More information about the maemo-developers mailing list