dropping priveledges

David M. Wilson dw-google.com at botanicus.net
Wed Dec 31 13:30:58 EST 2003


Kamus of Kadizhar <yan at NsOeSiPnAeMr.com> wrote in message news:<bsurh1$fe1p$1 at news3.infoave.net>...
> Any way to get a python script to run with a specified user priveledges?
> 
> I have a script that has to run as a specific user.

For portability, doing it outside of the script is a better idea, eg.
using su or sudo, etc. Otherwise,

   import os
   help(os.setuid)
   help(os.seteuid)


David.




More information about the Python-list mailing list