I'm running ColdFusion 9 add Windows Server Datacenter. I have written a batch file that creates a directory on the system. If I use cfexecute
to call cmd.exe
to run the batch file, who is the owner of the directory created? Is it the user that runs ColdFusion, or is it the user that created the batch file, or is it neither of those two?
I'm restricted from creating a Windows scheduled task, and I can't use cfdirectory
to create the folders because the CF user has elevated permissions, and even mode=777
doesn't work. Any input or insight is appreciated.
any actions performed by Coldfusion are done in the context of the user under which the coldfusion service runs, so any files/folders will also be owned by that user. Since it is a windows server you cannot use unix commands to change permissions.
If you have access to cfexecute then you can pretty much do anything from command line, so it is pretty pointless for them to restrict cfdirectory, maybe you should point this out to them. If they want to restrict access then it would be better to do this using security sandboxes, and the permissions of the user under which the service runs.