Best way to gain root privileges

Steven D'Aprano steve+comp.lang.python at pearwood.info
Wed Feb 16 16:55:12 EST 2011


On Wed, 16 Feb 2011 15:29:53 -0600, Daniel Mahoney wrote:

> On Wed, 16 Feb 2011 21:26:26 +0000, GSO wrote:
> 
>> I'm sure this question is as old as time, but what is the best way to
>> gain root privileges?  (Am using Python 2.6.5, pygtk2 v2.16, Gtk
>> v2.18.9, on RHEL6.)
> 
> Gain root privileges for a script? Write a c wrapper to call the script,
> chown it (the wrapper) to root, and set it (the wrapper) suid.

Further to this:

http://www.theillien.com/Sys_Admin_v12/html/v10/i06/a1.htm



-- 
Steven



More information about the Python-list mailing list