Score:0

IUSR can't write to Windows Event Log but Application Pool Identify Can?

cn flag

I have a website on IIS. The website runs PHP. When an error occurs in PHP, the error should appear in the Windows Event Log (because the error_log setting in php.ini is set to syslog).

If the anonymous user uses the IUSR account, the error does not appear in the event log. If the anonymous user uses the Application Pool Identity account, the error does appear in the event log.

Why can the Application Pool Identity account write to the event log, but the IUSR account not? Note that PHP is not writing to a custom source. Also note that the IUSR account is in the IIS_IUSRS account, which has full access to the Application Source of the Windows Event Log.

Score:0
us flag

You can modify event log access rights to allow IUSR access to write events in a log.

Check this article for more information: https://learn.microsoft.com/en-us/troubleshoot/windows-server/group-policy/set-event-log-security-locally-or-via-group-policy

user648336 avatar
cn flag
I read the article, and I don't get it.
user648336 avatar
cn flag
Actually, I understand it now. So, I need to modify that weird string of text to allow anonymous users to write to the event log. I'm not going to do that, as it's too weird. I'm just going to use the application pool identity.
user648336 avatar
cn flag
So I can't use the application pool identity, because my site needs to access a share in our AD domain, and ACLing each machine to the share is too much work... So i am just not going to use the event log....
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.