Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 52161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:51:49+00:00 2026-05-10T16:51:49+00:00

When an ASP.NET application is running under IIS6.0 in Windows 2003 Server with impersonation,

  • 0

When an ASP.NET application is running under IIS6.0 in Windows 2003 Server with impersonation, what user account is relevant for deciding file read/write/execute access privileges? I have two scenarios where I am trying to understand what access to grant/revoke. I thought the most relevant user is probably the identity specified in the Application Pool, but that doesn’t seem to be the whole story.

The first issue concerns executing a local batch file via System.Diagnostics.Process.Start()–I can’t do so when the AppPool is set to IWAM_WIN2K3WEB user, but it works fine if it is set to the Network Service identity. I of course made sure that the IWAM user has execute rights on the file.

The second involves writing to a file on the local hard drive–I’d like to be able to prevent doing so via the access control list via folder properties, but even when I set up all users in the folder as ‘read’ (no users/groups with ‘write’ at all), our ASP.NET still writes out the file no problem. How can it if it doesn’t have write access?

Google search turns up bits and pieces but never the whole story.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:51:50+00:00Added an answer on May 10, 2026 at 4:51 pm

    what user account is relevant for [..] file read/write/execute access

    As a rule: Always the user account the application/page runs under.

    The IWAM account is pretty limited. I don’t think it has permissions to start an external process. File access rights are irrelevant at this point.

    If a user account (Network Service in your case) owns a file (i.e. has created it), it can do anything to this file, even if not explicitly allowed. Check who owns your file.

    Process Monitor from Microsoft is a great tool to track down subtleties like this one.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have migrated one ASP.NET v4.0 application to a new server running under a
I have a production server (Windows Server 2003 SP2), running several ASP.NET 2 apps
I have a small web application with ASP.NET AJAX running well under the Cassini
I have an ASP.NET application running on multiple IIS6 web servers, with a SQL
I need to impersonate myself as a domain user in a ASP.NET application running
I've got an ASP.NET application up and running on a server. I'd like to
I have an ASP.Net application running under IIS 6. A simple page has two
How to determine whether asp.net (mvc2) application is running under IIS (7) or VS
Our application is a ASP.NET + Flex running on IIS 6.0 server. On the
We are running a .Net 1.1 based Windows Service ( not an ASP.Net application),

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.