- Oct 11, 1999
- 3,064
- 0
- 0
I've got two projects that are going to need something along these lines, and I'm curious what others of you have seen or done to address this problem.
Because the apache user (nobody, www-data, whatever) needs read access to everyones website directories (~/public_html), they must be set world-readable. Which means anyone on the system can run a php or perl script to read files in other peoples directories/sites. The problem with this becomes database username/passwords. If anyone can read them then anyone can mess with each others db's.
Now I know with PHP I can solve most of this with safe mode, openbasdir, and a large list of restricted functions, but that still doesn't solve Perl for me.
Plus, here's a doozy... I really want to give users shell access.
So, PHP, Perl, and Shell.... yet not allow people to look in others directories, all the while allowing apache to do so. Impossible? or a challenge
bart
Because the apache user (nobody, www-data, whatever) needs read access to everyones website directories (~/public_html), they must be set world-readable. Which means anyone on the system can run a php or perl script to read files in other peoples directories/sites. The problem with this becomes database username/passwords. If anyone can read them then anyone can mess with each others db's.
Now I know with PHP I can solve most of this with safe mode, openbasdir, and a large list of restricted functions, but that still doesn't solve Perl for me.
Plus, here's a doozy... I really want to give users shell access.
So, PHP, Perl, and Shell.... yet not allow people to look in others directories, all the while allowing apache to do so. Impossible? or a challenge
bart
