ASP.Net which user account running Web Service on IIS 7?

后端 未结 5 451
名媛妹妹
名媛妹妹 2020-12-05 13:16

I want to know which account running my Web Service/Application so that I can assign the read/write access to that account. I have researched and see most of the sources men

5条回答
  •  醉酒成梦
    2020-12-05 13:20

    I had a ton of trouble with this and then found a great solution:

    Create a file in a text editor called whoami.php with the below code as it's content, save the file and upload it to public_html (or whatever you root of your webserver directory is named). It should output a useful string that you can use to track down the user the webserver is running as, my output was "php is running as user: nt authority\iusr" which allowed me to track down the permissions I needed to modify to the user "IUSR".

    
    

提交回复
热议问题