file upload permissions issue

Discussion in 'ASP .Net' started by Tim Payne, Jul 11, 2007.

  1. Tim Payne

    Tim Payne Guest

    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.
     
    Tim Payne, Jul 11, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark

    File upload permissions

    Mark, Nov 12, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    549
    Suresh
    Nov 12, 2003
  2. Andrea Williams

    Need help with File Upload Permissions

    Andrea Williams, Jul 9, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,934
    Andrea Williams
    Jul 9, 2004
  3. Scott Allen
    Replies:
    0
    Views:
    440
    Scott Allen
    Jul 13, 2004
  4. Curt K
    Replies:
    0
    Views:
    566
    Curt K
    Nov 3, 2006
  5. N. Quisitive
    Replies:
    0
    Views:
    135
    N. Quisitive
    Jan 17, 2006
Loading...

Share This Page