Best way to gain root privileges

GSO gsowww at yahoo.co.uk
Fri Feb 18 09:42:30 EST 2011


On 17 February 2011 18:39, Adam Skutt <askutt at gmail.com> wrote:
...
> As Terry suggests (and I fully concur), all of these issues are best
> solved by having a privileged daemon (though it may not need to be
> root or entirely root).
>

I think this could be done more or less with the multiprocessing module:

http://docs.python.org/library/multiprocessing.html#module-multiprocessing

However I would like to have a look at policykit first, it could be a
more elegant solution:

http://pypi.python.org/pypi?:action=search&term=polkit&submit=search
http://en.wikipedia.org/wiki/PolicyKit
http://www.freedesktop.org/wiki/Software/PolicyKit
http://ubuntuforums.org/showthread.php?t=1359397
http://live.gnome.org/PolicyKit

I note that policykit was created by redhat, and that RHEL6 does not
include gksudo in with its gnome for some odd reason.



More information about the Python-list mailing list