question

MarkHwang-7831 avatar image
0 Votes"
MarkHwang-7831 asked SamWu-MSFT commented

HTTP Error 401.3 - Unauthorized using Phthon on Windows 10

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


windows-server-iis
capture.gif (35.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SamWu-MSFT avatar image
0 Votes"
SamWu-MSFT answered SamWu-MSFT edited

@MarkHwang-7831

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.



capture.png (20.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MarkHwang-7831 avatar image
0 Votes"
MarkHwang-7831 answered

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



1.gif (855.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MarkHwang-7831 avatar image
0 Votes"
MarkHwang-7831 answered

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



1.gif (746.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MarkHwang-7831 avatar image
0 Votes"
MarkHwang-7831 answered SamWu-MSFT commented

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



2.gif (68.4 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MarkHwang-7831 Can you tell me which methods you tried and ended up getting this error?

0 Votes 0 ·

I tried to run a simple Python program with just a print statement. Below is my Handler settings:

125585-3.gif


0 Votes 0 ·
3.gif (922.5 KiB)

I answered your question in another thread, and then we will discuss the problem in that thread. thanks

0 Votes 0 ·