[pygtk] running pygtk application with root privileges

Miki daily.cron at gmail.com
Mon Mar 12 00:48:36 WST 2007

Hi all,
I'm building an application that needs to change configuration files in the
/etc and in the /usr directories like the dhcp.conf file.
Any user should be able to run this application but to changes those files
root privileges is needed.

How can I run pygtk application in root (setuid) mode or how can I ask the
user to enter the root password (in the pygtk env.) and then run the

Any idea?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20070311/d0199a99/at=

More information about the pygtk mailing list