Windows EventLog Permissions

廉价感情. 提交于 2019-12-23 08:02:01

问题


What permissions do I need to give a User for them to be able to write to the Windows EventLog? I have an ASP.NET application that needs to impersonate a user and that impersonated user must be able to write the event log


回答1:


To create an Event Log source you need to be an administrator, otherwise you should be able to write to it without elevated privileges.

Maybe take a look at this article.




回答2:


The MSDN docs on Event Logging (Win32) do not mention any required privileges.

Regardless, I'm not sure I understand why you need to write to the log using the impersonation token. You can still impersonate, but also write to the log with a different (admin) account, if that's necessary.



来源:https://stackoverflow.com/questions/1028883/windows-eventlog-permissions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!