PHP and file permissions?
I have a bit of a problem. On our server we have a file library that is shared by many users. The library is access restricted using linux file permissions, and it works rather well if the user is accessing it using samba or shell. However, I would like to build a PHP web interface so people would be able to access file from the web browser. However, I am not quite sure how to do this, I do not want to give my web server access to all the files, as some are sensitive, and if something gose wrong, or if some one hacks the php script I can loose the entire library tree.
What I was thinking is if it is possible to some how tell apache to span a child and run it as a particular user and have that child only interacting with that user. That way the server would have the same rights as the user. I do not know if that is possible. Any ideas? Alternatively, are there any programs wich would offer a file management type feature vie web?