Active Topics

 


Reply
Thread Tools
Tiboric's Avatar
Posts: 433 | Thanked: 312 times | Joined on Nov 2009 @ U.K
#1
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
 
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#2
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's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#3
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
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 

The Following User Says Thank You to noobmonkey For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 09:19.