Let users execute but not view

Steve Horsley shoot at the.moon
Sun Jan 4 15:46:05 EST 2004


Florian Lindner wrote:
> Hi!
> I have a python script which should be executed my normal users but they
> should not be able to view the sourcecode. Setting permissions to x only
> does not help, the python interpreter can not read the file.
> How can I do that?
> Thanks,
> Florian

I believe that the common thing to do is to remove the .py file but 
leave the compiled .pyc file, which is rather more difficult to 
reverse-engineer. Not impossible of course.

However, I'm only a newbe and others may know a better way.

Steve



More information about the Python-list mailing list