This content has been marked as final.
Show 4 replies
-
1. Re: cfdirectory to network locations
johnab Aug 21, 2007 8:36 AM (in response to Dan Bracuk)it will definitely be a permissions thing. By default CF (on windows) runs as the System user which has no priviledges over a network. It's a pretty easy problem to solve - assuming your CF server and the servers you want to access are in the same domain (or forest) then you simply change your CF service to start as a domain user and then give that new user account permission to your local websites as well as your folders (and shares). -
2. Re: cfdirectory to network locations
Newsgroup_User Aug 21, 2007 8:39 AM (in response to Dan Bracuk)johnab wrote:
> By default CF (on windows) runs as the System user
i believe you meant LOCAL, not System?
--
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com -
3. Re: cfdirectory to network locations
Newsgroup_User Aug 21, 2007 8:39 AM (in response to Dan Bracuk)"Am I attempting something that is even possible? If it's possible, is
my lack of success because of my code or because of permissions?"
It is quite possible - I do stuff like this all the time. Your problem
is most likely the latter. In order for this to work, you must make
sure that the ColdFusion application server is running as a user that
has the appropriate permissions to the resources you want it to access.
By default CF runs as a 'local system' user which usually has
permissions to the local server and nothing else. On a windows system
this would be changing the user that the CF application server service
runs under in the "Service" panel to a user defined with the appropriate
permissions.
Once this is done, code such as this will work fine <cfdirectory
directory="//server-name/directory/"...>. -
4. Re: cfdirectory to network locations
Newsgroup_User Aug 21, 2007 8:44 AM (in response to Dan Bracuk)if you put the name of server CF is running on into \\server\somedir\
path, you can see that cfdirectory will happily return its contents =>
look at permissions
--
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com


