Windows – Allow ColdFusion to access mapped drive

file-permissionslocal-systemmappeddrivewindows

On our production web server, it has a mapped drive (G:) that goes to the database backup folder of our database server.

I can access it via termainal services easily, no problem.

However, if i want to run a coldfusion app, to work with that directory, it says that directory is empty.

So apparently I need to have the windows user that coldfusion is setup as, Local System, have full access to that mapped drive.

I am not sure of the steps to do this.

The production web server is running Windows Web Server Edition Sp2.

Can you help me setup folder permissions, so i can copy/move files from the mapped drive in coldfusion?

Thank you.

Best Answer

You must run ColdFusion service as a domain account instead of the default of "System". Grant the domain account permission on the remote shared directory.

Find the ColdFusion service in the Windows Services app. Double click the service. In the dialog popup, click the Log On tab. Change "Log on as: Local System" to "Log on as: This Account". Then restart the service.

Here's some related info from my blog:

http://www.talkingtree.com/blog/index.cfm/2005/7/27/UNC4CFMX http://www.talkingtree.com/blog/index.cfm/2006/2/20/Improper-Caching-of-File-not-found

Related Topic