Best way to gain root privileges

GSO gsowww at yahoo.co.uk
Sun Feb 20 11:54:33 EST 2011


> 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
>

A quick note for completeness on policykit - it takes two config files
to manage policykit (which threw me a bit), see pkexec, but see also
pklocalauthority to authorise users:

http://hal.freedesktop.org/docs/polkit/pklocalauthority.8.html
http://mdzlog.alcor.net/2010/06/27/navigating-the-policykit-maze/

Also on the subject of creating/ running a daemon from init, a
template for python code to do this here:

http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/



More information about the Python-list mailing list