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.
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.