« Previous Next »

Answered Thread: web.config and declaring a website folder writable

Last post 10-15-2009 3:26 AM by Leo Tang - MSFT. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 10-12-2009, 9:32 AM

    web.config and declaring a website folder writable

    I am creating a deployment package that expects all IIS configuration through an web.config file.

    I want to declare a folder writable and accessible only by a website's application; i.e. not accessible nor writable by a website's user.

    How would I do that within web.config?

    Thanks

    Jeff in Seattle

     

    Jeff in Seattle
  • 10-12-2009, 11:27 AM In reply to

    Re: web.config and declaring a website folder writable

    Are you authenticating? Impersonating?

    Basically, permissions on a folder aren't contained in the web.config and shouldn't be managed there.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 10-12-2009, 12:25 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Answered Re: web.config and declaring a website folder writable

    Access can only be granted/denied to a user - "website's application" is not a user.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 10-15-2009, 3:26 AM In reply to

    Answered Re: web.config and declaring a website folder writable

    Hi,

    You can consider restrict specific users’ accessing on the folder by using authorization rules.
    Security Authorization <authorization>
    http://www.iis.net/ConfigReference/system.webServer/security/authorization

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (4 items)
Microsoft Communities