Re: Running Python Scripts With 'sudo'

2005-03-02 Thread Jeff Epler
Does "sudo" sanitize the environment? Imagine that the user can set PYTHONPATH, PYTHONINSPECT, etc. Beyond that, you have the same problems as with any code that runs with "extra privileges". Can the user supply any code that is fed to patently unsafe primitives (like the unpickler, eval() or th

Re: Running Python Scripts With 'sudo'

2005-03-02 Thread Steve Holden
Tim Daneliuk wrote: Given that setuid is a Bad Thing for scripts, what is the general consensus here on running a Python script via 'sudo' to give it root system access? Is this reasonably secure, or am I still asking for trouble? TIA, The value of "sudo" is that everyone must authenticate as thems

Running Python Scripts With 'sudo'

2005-03-02 Thread Tim Daneliuk
Given that setuid is a Bad Thing for scripts, what is the general consensus here on running a Python script via 'sudo' to give it root system access? Is this reasonably secure, or am I still asking for trouble? TIA, -- Tim