Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Windows Server 2012 R2 および IIS 8.5 でサイトを実行していますが、問題が発生しました。
exec('whoami')
nt authority\iusr
proc_open('whoami', $desc, $pipes)
iis apppool\mysite
なぜこうなった?
それは興味深い。これは、proc_open の性質に関係しているに違いありません。どういうわけか、IIS で使用される標準ユーザーとは異なるアクセス許可を持つ共有 iis プールに移動します。proc_open は、より高度なレベルの制御を要求することを既に知っているかもしれません。Windows での php は、おそらくそれを取得するために追加のアクセス許可が必要です。