![](/img/trans.png)
[英]Can a Windows service running under Local System create new files on the computer it is running on?
[英]Can we access network file in windows service running under local system?
我有在本地系统帐户下运行的Windows服务。 我正在检查File.Exist(网络中的文件)。 这在Windows 7上可以正常工作,但是当我在Windows XP SP3上运行此服务时,它将为file.exists()返回false。 有帮助吗???
已解决。LocalSystem故意不具有NETWORK权限,因此服务可以在该帐户下运行,并且能够“安全”免受可能接触网络的攻击。
因此,您做对了-将其更改为其他帐户-LocalSystem无法用于进行网络访问的服务。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.