Impersonation question regarding a microsoft article

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Impersonation question regarding a microsoft article

    Hello everyone!

    I recently read "ASP.NET Impersonation" from the .NET
    Framework Developer's Guide
    ([url]http://msdn.microsoft.com/library/default.asp?[/url]
    url=/library/en-
    us/cpguide/html/cpconaspnetimpersonation.asp) and it says
    the following:

    "Only application code is impersonated; compilation and
    configuration are read as the process token. The result
    of the compilation is put in the "Temporary ASP.NET
    files" directory. The account that is being impersonated
    needs to have read/write access to this directory."

    So, this is basically telling me that every authenticated
    user has to have access to my 'Temporary ASP.NET files'
    directory in order to view the pages??? I've verified
    that this is definitely not the case, as my 'Temporary
    ASP.NET files' directory has only the following security
    permissions(my computer name is BNEWTZ):

    Administrators (BNEWTZ\Administrators)
    aspnet (aspnet@mycompanysdomain.local)
    CREATOR OWNER
    LOCAL SERVICE
    NETWORK SERVICE
    Power Users (BNEWTZ\Administrators)
    SYSTEM
    Users (BNEWTZ\Users)

    With these permissions (which are the default, except
    that I've added the domain aspnet account which I use in
    the processmodel section of machine.config) any domain
    user can get to the website just fine. So is the article
    incorrect in that statement?

    Thanks!
    -Brian

    Brian Newtz Guest

  2. Similar Questions and Discussions

    1. [Microsoft][ODBC Microsoft Access Driver]'(unknown)' is not a valid path error
      This is probably an old problem that most of you know how to fix (I hope!). The scenario is that I have a web server running an ASP site that needs...
    2. "Microsoft must deliver 'secure environments' not tools to write 'secure code'" : draft article
      Hello Please see bellow the final draft of an article soon to be published. I would appreciate your comments and corrections of anything that I...
    3. Microsoft Self Paced Training ASP.NET Book Question
      I apologize if this is the wrong place to post this, but there doesn't seem to be a NG for training. Please advise if there is a better NG. ...
    4. QUESTION for a MICROSOFT guy here...
      about another news group... These news groups are always pleas for help... How about a news group like: ...
    5. microsoft-ds question
      I don't think it can be disabled. Use a firewall (either something like ZoneAlarm or a router+firewall). There are several worms trying to...
  3. #2

    Default RE: Impersonation question regarding a microsoft article

    Brian,

    That documentation is incorrect. The process account has to have full
    control on that folder, but the impersonated account does not in the case
    of first-time JIT compile.

    Jim Cheshire, MCSE, MCSD [MSFT]
    Developer Support
    ASP.NET
    [email]jamesche@online.microsoft.com[/email]

    This post is provided as-is with no warranties and confers no rights.


    --------------------
    >Content-Class: urn:content-classes:message
    >From: "Brian Newtz" <anonymous@discussions.microsoft.com>
    >Sender: "Brian Newtz" <anonymous@discussions.microsoft.com>
    >Subject: Impersonation question regarding a microsoft article
    >Date: Tue, 23 Dec 2003 08:17:43 -0800
    >Lines: 40
    >Message-ID: <09b201c3c970$4b509c00$a601280a@phx.gbl>
    >MIME-Version: 1.0
    >Content-Type: text/plain;
    > charset="iso-8859-1"
    >Content-Transfer-Encoding: 7bit
    >X-Newsreader: Microsoft CDO for Windows 2000
    >Thread-Index: AcPJcEtQodKge0h2Sd+UR2DdUFfdag==
    >X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    >Newsgroups: microsoft.public.dotnet.framework.aspnet.security
    >Path: cpmsftngxa07.phx.gbl
    >Xref: cpmsftngxa07.phx.gbl
    microsoft.public.dotnet.framework.aspnet.security: 8036
    >NNTP-Posting-Host: tk2msftngxa14.phx.gbl 10.40.1.166
    >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
    >
    >Hello everyone!
    >
    >I recently read "ASP.NET Impersonation" from the .NET
    >Framework Developer's Guide
    >([url]http://msdn.microsoft.com/library/default.asp?[/url]
    >url=/library/en-
    >us/cpguide/html/cpconaspnetimpersonation.asp) and it says
    >the following:
    >
    >"Only application code is impersonated; compilation and
    >configuration are read as the process token. The result
    >of the compilation is put in the "Temporary ASP.NET
    >files" directory. The account that is being impersonated
    >needs to have read/write access to this directory."
    >
    >So, this is basically telling me that every authenticated
    >user has to have access to my 'Temporary ASP.NET files'
    >directory in order to view the pages??? I've verified
    >that this is definitely not the case, as my 'Temporary
    >ASP.NET files' directory has only the following security
    >permissions(my computer name is BNEWTZ):
    >
    >Administrators (BNEWTZ\Administrators)
    >aspnet (aspnet@mycompanysdomain.local)
    >CREATOR OWNER
    >LOCAL SERVICE
    >NETWORK SERVICE
    >Power Users (BNEWTZ\Administrators)
    >SYSTEM
    >Users (BNEWTZ\Users)
    >
    >With these permissions (which are the default, except
    >that I've added the domain aspnet account which I use in
    >the processmodel section of machine.config) any domain
    >user can get to the website just fine. So is the article
    >incorrect in that statement?
    >
    >Thanks!
    >-Brian
    >
    >
    Jim Cheshire [MSFT] Guest

  4. #3

    Default RE: Impersonation question regarding a microsoft article

    Jim,

    Thanks!

    -Brian

    >-----Original Message-----
    >Brian,
    >
    >That documentation is incorrect. The process account
    has to have full
    >control on that folder, but the impersonated account
    does not in the case
    >of first-time JIT compile.
    >
    >Jim Cheshire, MCSE, MCSD [MSFT]
    >Developer Support
    >ASP.NET
    >jamesche@online.microsoft.com
    >
    >This post is provided as-is with no warranties and
    confers no rights.
    >
    >
    >--------------------
    >>Content-Class: urn:content-classes:message
    >>From: "Brian Newtz"
    <anonymous@discussions.microsoft.com>
    >>Sender: "Brian Newtz"
    <anonymous@discussions.microsoft.com>
    >>Subject: Impersonation question regarding a microsoft
    article
    >>Date: Tue, 23 Dec 2003 08:17:43 -0800
    >>Lines: 40
    >>Message-ID: <09b201c3c970$4b509c00$a601280a@phx.gbl>
    >>MIME-Version: 1.0
    >>Content-Type: text/plain;
    >> charset="iso-8859-1"
    >>Content-Transfer-Encoding: 7bit
    >>X-Newsreader: Microsoft CDO for Windows 2000
    >>Thread-Index: AcPJcEtQodKge0h2Sd+UR2DdUFfdag==
    >>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    >>Newsgroups:
    microsoft.public.dotnet.framework.aspnet.security
    >>Path: cpmsftngxa07.phx.gbl
    >>Xref: cpmsftngxa07.phx.gbl
    >microsoft.public.dotnet.framework.aspnet.security :8036
    >>NNTP-Posting-Host: tk2msftngxa14.phx.gbl 10.40.1.166
    >>X-Tomcat-NG:
    microsoft.public.dotnet.framework.aspnet.security
    >>
    >>Hello everyone!
    >>
    >>I recently read "ASP.NET Impersonation" from the .NET
    >>Framework Developer's Guide
    >>([url]http://msdn.microsoft.com/library/default.asp?[/url]
    >>url=/library/en-
    >>us/cpguide/html/cpconaspnetimpersonation.asp) and it
    says
    >>the following:
    >>
    >>"Only application code is impersonated; compilation and
    >>configuration are read as the process token. The result
    >>of the compilation is put in the "Temporary ASP.NET
    >>files" directory. The account that is being
    impersonated
    >>needs to have read/write access to this directory."
    >>
    >>So, this is basically telling me that every
    authenticated
    >>user has to have access to my 'Temporary ASP.NET files'
    >>directory in order to view the pages??? I've verified
    >>that this is definitely not the case, as my 'Temporary
    >>ASP.NET files' directory has only the following
    security
    >>permissions(my computer name is BNEWTZ):
    >>
    >>Administrators (BNEWTZ\Administrators)
    >>aspnet (aspnet@mycompanysdomain.local)
    >>CREATOR OWNER
    >>LOCAL SERVICE
    >>NETWORK SERVICE
    >>Power Users (BNEWTZ\Administrators)
    >>SYSTEM
    >>Users (BNEWTZ\Users)
    >>
    >>With these permissions (which are the default, except
    >>that I've added the domain aspnet account which I use
    in
    >>the processmodel section of machine.config) any domain
    >>user can get to the website just fine. So is the
    article
    >>incorrect in that statement?
    >>
    >>Thanks!
    >>-Brian
    >>
    >>
    >
    >.
    >
    Brian Newtz Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139