HTTP Error 401.3 - Unauthorized using Phthon on Windows 10

Mark Hwang 46 Reputation points
2021-08-18T16:35:36.023+00:00

Hello,

I am trying to run a simple Python script from my wwwroot directory. I have added anonymous logon, IIS_IUSERS, IUSER with full permissions in the Security tab of the wwwroot directory.124391-capture.gif

Internet Information Services
0 comments No comments
{count} votes

Accepted answer
  1. Sam Wu-MSFT 7,036 Reputation points Microsoft Vendor
    2021-08-19T02:05:45.003+00:00

    @Mark Hwang

    To to modify the security user access properties of the file system folder on which your site is mapped. But IIS_IUSRS is not the only account you must authorize, IIS_IUSRS is not the only account you must authorize.

    • In IIS management console, in the Authentication part of the configuration of your site, modify the "Anonymous authentication" line and check the account set as "Specific user".
    • Give read and execution permission on the folder of your site to the account listed as the specific user.

    Or

    • In IIS management console, in the Authentication part of the configuration of your site, modify the "Anonymous authentication" line by selecting "application pool identity" instead of "Specific user".

    124430-capture.png


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Mark Hwang 46 Reputation points
    2021-08-23T00:52:51.62+00:00

    The security is working now but I am getting a new error.125443-2.gif

    1 person found this answer helpful.

  2. Mark Hwang 46 Reputation points
    2021-08-20T13:39:07.257+00:00

    Thanks for your suggestions. I tried option 2 but now I am getting a 503 error with any page to display.125036-1.gif

    0 comments No comments

  3. Mark Hwang 46 Reputation points
    2021-08-22T23:56:58.457+00:00

    I got rid of the 503 error but the 401.3 error persists. I set application pool identity but am getting the same error.

    125385-1.gif

    0 comments No comments