How to add a service SID to a service?

后端 未结 1 379
隐瞒了意图╮
隐瞒了意图╮ 2021-01-15 23:58

I have a windows service with a TCP/IP server built in. Clients and connect and some information is distributed etc. Typically the service is installed to log on as Network

相关标签:
1条回答
  • 2021-01-16 00:58

    This is called Service Isolation. Specifying with SERVICE_CONFIG_SERVICE_SID_INFO parameter with SERVICE_SID_INFO structure with the SID type instructs the SCM to add the service SID to the service's process token, thus allowing the service to gain access to resources that you may have configured to allow access only to your specific service. Also you may use sc command

    sc <server> sidtype [service name] [type]
    
    OPTIONS:
     type = <none|unrestricted|restricted>
    
    sc <server> qsidtype [service name]
    
    0 讨论(0)
提交回复
热议问题