Best way to gain root privileges

GSO gsowww at yahoo.co.uk
Fri Feb 18 17:26:39 EST 2011


On 18 February 2011 20:23, Alexander Kapps <alex.kapps at web.de> wrote:
...
> Don't know if this helps you, but at least for CentOS 5.4, gksudo is
> available in the gksu package from rpmforge.

It looks as though policykit includes similar functionality, namely
the command pkexec replaces gksudo:

http://hal.freedesktop.org/docs/polkit/pkexec.1.html
http://hal.freedesktop.org/docs/polkit/polkit.8.html
http://www.freedesktop.org/wiki/Software/PolicyKit

A python package:

http://pypi.python.org/pypi?:action=search&term=polkit&submit=search

But there is example python code here:

http://hal.freedesktop.org/docs/polkit/polkit-apps.html

I'm still not clear exactly how this works but will post some code
once I figure it out.



More information about the Python-list mailing list