maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Python beginner needs help (root privileges) (https://talk.maemo.org/showthread.php?t=69741)

Tiboric 2011-02-12 19:17

Python beginner needs help (root privileges)
 
Hi guys, I'm learning python \ QT and trying to make my first app
At the moment I'm using my .desktop file to start with root privileges but I really need a way to get them from within the app,
as doing it the way I am means some can't use it(due to root pw) and that it uses the root/default theme in the GUI .

Any help will be appreciated,

Thanks

Joorin 2011-02-12 19:48

Re: Python beginner needs help (root privileges)
 
Perhaps you can install it SUID root?

But, needing root privileges is normally a sign you're doing something bad. And the best thing is to drop them as soon as possible in your program.

noobmonkey 2011-02-12 19:53

Re: Python beginner needs help (root privileges)
 
have to admit not done it yet, but .... you can use the sudoers file on installation to allow certain root commands to be run :)

Relying on runind "sudo .... command" is probably not the best way :P


All times are GMT. The time now is 14:18.

vBulletin® Version 3.8.8