简体   繁体   中英

Can we access network file in windows service running under local system?

I have windows service which runs under local system account. I am checking File.Exist(File in the network). this works fine with windows 7 but when i run this service on windows xp sp3 then it return false for file.exists(). Any help???

Solved.. LocalSystem intentionally does not have NETWORK rights so that services can be run under that account and be "safe" from attacks that would touch the network.

So you did right - change it to some other account - LocalSystem won't work for a service doing network access.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM