Quantcast
Channel: FastCGI Module
Viewing all articles
Browse latest Browse all 205

Why are exec and proc_open running under different user on IIS?

$
0
0

Reposting from here as we couldn't get an answer on StackOverflow.

I'm running my site on Windows Server 2012 R2 and IIS 8.5 and I encountered a problem.

  • When I run exec('whoami'), it returns nt authority\iusr.
  • When I run proc_open('whoami', $desc, $pipes), the result isiis apppool\mysite.

Why is this happening?


Viewing all articles
Browse latest Browse all 205

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>