How to Start/Stop a Windows Service from an ASP.NET app - Security issues

前端 未结 6 1308
没有蜡笔的小新
没有蜡笔的小新 2020-12-04 18:33

Here\'s my Windows/.NET security stack:

  • A Windows Service running as LocalSystem on a Windows Server 2003 box.
  • A .NET 3.5 Website running on the same
6条回答
  •  北海茫月
    2020-12-04 19:07

    To give IIS permission to start/stop a particular service:

    • Download and install Subinacl.exe. (Be sure to get the latest version! Earlier versions distributed in some resource kits don't work!)
    • Issue a command similar to: subinacl /service {yourServiceName} /grant=IIS_WPG=F

    This grants full service control rights for that particular service to the built-in IIS_WPG group. (This works for IIS6 / Win2k3.) YMMV for newer versions of IIS.)

提交回复
热议问题