Getting SuperUser Authority From Within Running Python Program

Tim Daneliuk tundra at tundraware.com
Sun Jan 26 14:50:07 EST 2003


Peter Hansen wrote:
> Tim Daneliuk wrote:
> 
>>I am working on the next release of 'twander' - a user-programmable
>>file manager/browser (http://www.tundrware.com/Software/twander).
>>I want to be able to temporarily go to super-user status so the
>>program can act upon/manage/manipulate root-owned files.
> 
> 
> Umm, that's not really want you want to do.  You think you
> want to do it, but you really don't.
> 
> What you want to do, is require that anyone who wants to manipulate
> root-owner files, should be logged in as root already when they
> run the program.  *That's* what you really wanted to do, but didn't
> realize you wanted to do.  ;-)
> 
> -Peter


OK, OK, you all convinced me (plus the link Alex sent me to were pretty
convincing pretty fast) .. I'll be good and make the user's do the
Right Thing...

Thanx for the help,

-- 
------------------------------------------------------------------------------
Tim Daneliuk
tundra at tundraware.com





More information about the Python-list mailing list