Using Python to run SSH commands on a remote server

Jeffrey Froman jeffrey at fro.man
Mon Jun 23 16:23:12 EDT 2008


John Salerno wrote:

> I guess a blanket process might be a tad risky, but don't you want all CGI
> files to be executable by all?

Typically, I prefer CGI scripts to be executable only the owner. If the web
server runs those scripts as a different user, then that user must also be
permitted to execute the scripts of course.

Also note that "all .py files on my web server" is not necessarily
restricted to CGI scripts -- and therein lies the real gist of my
cautionary note.


Jeffrey



More information about the Python-list mailing list