Hi,
I am kind of new to PHP
I am developing a site, similar to control panel, where people could register for an account, and upload their web pages.
When people register an account, a folder will be created for the user, and will be named with his/her username. However this folder will be owned by the linuxuser “http” since pages will be uploaded by people via a control panel written in PHP. So folders allocated to users, and any file that gets uploaded via the control panel will all be owned by the linuxuser “http” with permission 755.
Customer authentication is performed using a table stored in MySql. No linuxuser account will be created when a person registers for a webspace/account.
Now this is my question:-
If a CUSTOMER uploads a script, lets say written in php to read any file accessible by the linuxuser “http”, wont he be able to see the contents of those files, including /etc/passwd ?
How do we prevent it? Or is there a better design?