User based php permissions in IIS
I've searched around wht and the net and I haven't been able to find an answer to this. Hopefully someone here can help me.I have a Windows 2000 server runing IIS 5 and php 4 that I administer manually (no control panel.) I have multiple users with ftp and php/mysql access. Each user has their own user directory under wwwroot that they can upload files to. Each user has their own windows user account set up so that I can manage permissions on the users' web folders.
I need to enable write permissions for php so that the users' scripts can write to files, but I want to make sure that scripts run in a user's directory structure can only have write permission to files in that user's directory structure. I can't have users modifying each others files with php scripts.
For example:
user 01 has a webfolder at ...\wwwroot\user01
any php scripts run from
...\wwwroot\user01\script.php
or
...\wwwroot\user01\somefolder\ somescript.php
etc. should only have write access to ...\wwwroot\user01\ and all subdirectories, but nothing outside of the user01 directory. The same rules should apply to the user02 directory and all others.
Can anyone tell me how to do this?