[mod_python] open_basedir equivalent

Graham Dumpleton graham.dumpleton at gmail.com
Mon Apr 7 18:46:27 EDT 2008


2008/4/7 William Dauchy <wdauchy at gmail.com>:
> Hello,
>
>  Is there any open_basedir (which is a rule for php) equivalent in
>  python to protect directories? (to make it not browsable by users)

No. Not with mod_python.

The closest you may get is to not use mod_python but use any WSGI
capable framework or toolkit. Then use mod_wsgi and specifically use
mod_wsgi daemon mode with a daemon process group per distinct user.
Then configure mod_wsgi to run that daemon process as that user. Then
use UNIX file system permissions to control access.

Graham


More information about the Mod_python mailing list