Permission is not letting Service interact with mounted virtual folder / drive

随声附和 提交于 2020-01-06 07:17:10

问题


I'm mounting a folder to a virtual disk like this (I'm on Windows XP):

subst z: c:\virtual_disk

This works perfectly okay for one thing, I have a Service (created with C++ / CreateService(...) ) running and it can write files to c:\virtual_disk but not to z:\

I'm using classic fopen, fwrite etc.

I have, I think, narrowed down the problem to some sort of permission problem, I'm not sure though. The service runs on the "localSystem" account and the folder is mounted by me using an administrator account.

Any help appreciated!


回答1:


Mapping is per user. If you mapped Z using your own account, it won't catch for the local system account. You can either run the service under your own account, or have it do its own mapping.



来源:https://stackoverflow.com/questions/7671677/permission-is-not-letting-service-interact-with-mounted-virtual-folder-drive

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!