Active Topics

 


Reply
Thread Tools
Posts: 38 | Thanked: 7 times | Joined on Aug 2007
#1
Hi all,
I'm trying to write a functionality in Python and PyGTK which requires root privileges (e.g. running programs that need to modify OS internals). Running my python program with sudo gainroot would work, but then I wouldn't be able to access gconf and DBUS, and GTK in root looks horrible without theming.

If I were just running root programs I could chmod +s it, but then I won't be able to terminate it by sending signals to it (I'm trying to send SIGHUP when the process finishes), so that hack is not good enough.

So, my question is, is there any way to run a Gtk program in root while having access to all the normal user services?

Thanks in advance!
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:20.