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

  • SEARCH
  • Home
  • 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

Ask A Question

Stats

  • Questions 69k
  • Answers 69k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Maybe this ugly hack: Map<String, Integer> keyTextToCode = new HashMap<String,… May 11, 2026 at 12:45 pm
  • added an answer You can send XMLHttpRequests only to your domain. if your… May 11, 2026 at 12:45 pm
  • added an answer I think TServerSocket still ships, but isn't installed by default… May 11, 2026 at 12:45 pm

Related Questions

How to debug javascript in visual studio when an asp.net application is run under
I have a problem with an ASP.NET application that is driving me nuts. When
When is the IOC container in the life cycle of an ASP.NET application? When
Is it better to use NGEN an ASP.NET application when we know it is
I am working on an ASP.NET page that we, in code impersonate the requesting
When connecting to a network share for which the current user (in my case,
This is a question for a WSS/SharePoint guru. Consider this scenario: I have an
Please note: In each step I describe below I'm logged in as the same

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.