file upload permissions issue

T

Tim Payne

I have an odd permissions issue with uploading files to a windows 2003
server.

I have a reasonably unusual setup. We have a php website, running through
IIS that was written to use mod_rewrite. Obviously, this doesn't exist in
IIS, so as a workaround, I have the .net isapi dll as a wildcard handler for
the site, with the rewriting done by .net, which then passes the processng
back to the php pages. So far so good.

When I attempt to upload files, I am running into an odd issue. The folder
that the file is uploaded to is set with the correct read permissions, but
when I upload the files, instead of giving the 'NETWORK SERVICE' account
read permissions on the uploaded file as you'd expect, it gives it a
different set of permissions, where 'NETWORK SERVICE' has 'special
permissions' assigned and nothing else. The file is also missing a bunch of
the other permissions that should be assigned from the parent folder. It's
almost as if the uploaded file is being assigned its permissions from
somewhere else, but I have no idea where it's getting the permission set
from.

As a temporary work around I've made the ASP.Net application impersonate a
user that IS on the list of permissions assigned, although this is just a
temporary kludge. Does anyone have any idea why the server is behaving like
this with the uploaded file?

On a normal .Net configuration, the upload seems to be ok, it's just this
particular setup that's causing a problem.

Regards,

Tim.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top