Executable started by a windows service using the local system account cannot access network shares

后端 未结 3 1509
被撕碎了的回忆
被撕碎了的回忆 2020-12-28 11:52

I have an executable that is started by a windows service, this program will be run on a customers machine and will need to connect to a remote share to perform a particular

3条回答
  •  醉梦人生
    2020-12-28 12:21

    When you have a service that runs under NT AUTHORITY\LOCALSYSTEM (which is the name of the service account), it appears as the DOMAINNAME\COMPUTERNAME$ (note the $ sign) account to the rest of the network. That is, it appears as the COMPUTER's account in Active directory. Just grant your file and share permissions to DOMAINNAME\COMPUTERNAME$ and you should be good.

提交回复
热议问题