Getting SuperUser Authority From Within Running Python Program

Nick Vargish nav at
Mon Jan 27 05:01:29 CET 2003

Instead of setuid programs, which always make me nervous, be they
binary or scripted, what about setting up /etc/sudoers to allow just
the required functionality for the id that runs the python script?


#  ||  version 0.2  ||  2003-01-07  ||  Feed this to your Python.
print reduce(lambda x,y:x+chr(ord(y)-1),'Ojdl!Wbshjti!=obwAqbusjpu/ofu?','')

More information about the Python-list mailing list