Hello,

I'm trying to find out how to set the file permissions on an IIS server so I can execute file handling functions such as fopen, fputs, fclose ect.

I know this is pretty basic but I've yet to find a solution.

thanks for your help!

Clem C

    You do so through Windows Explorer, though in most cases you should not have to.

    You have to be able to control the sharing and security tabs in the properties dialog for individual folders. If it's your personal box and you installed IIS yourself, chances are you won't need to do any of this.

    Are you specifically having write issues somewhere?

    EDIT: Please be as specific as possible.

      When I go to the IIS manager, I have the site directory which is called "my_site_com" which is located in the "Web Sites" directory. Within the "my_site_com" directory I have a directory called "test" and a subdirectory w/in that called "logs". I have a php script that's trying to open a file within the "logs" directory and read the contents.

      I can click on all the succession of directories and set the Execute permissions to "Scripts Only" and it still doesn't make a difference.

      Hope this is enough information.

      Thanks,
      Clem

        PROBLEM SOLVED!

        The problem was that I was trying to grant the security permissions through IIS manager instead of simple old explorer. I just had to grant the default web viewing (in our case: IUSR_WW251) group permissions to the folder where the scripts were being read.

        Here's what I did:

        Windows Explorer >> Parent folder where scripts are reading/writing to files >> Sharing and Security >>
        Security tab >> Add >> Advanced >> Find Now >> choose default web user (IUSR_WW251) >> OK >> OK

          If you plan to be writing files, make sure the IUSR_* account has write access as well as read.

            Write a Reply...