Copy link to clipboard
Copied
Hello, all,
I was just wondering if there is a way to set folder attributes using CFDIRECTORY in CF10 Server, or CF11.
I'm specifically looking for a way to use CFDIRECTORY to create a folder (if it doesn't already exist) and set it so that file execution is disabled. Set it so that all files within are strictly read/write/delete, nothing else.
I notice that *nix servers can take advantage of the 'mode' attribute for CFDIRECTORY. Very nice, sadly we are in a Windows environment, so that will do no good.
V/r,
^_^
1 Correct answer
Coldfusion runs in Windows on the user that started it, so the permissions would be based on this user. I dont think it has any knowledge of NTFS permissions either so its very unlikely that you can set them either.
Copy link to clipboard
Copied
Coldfusion runs in Windows on the user that started it, so the permissions would be based on this user. I dont think it has any knowledge of NTFS permissions either so its very unlikely that you can set them either.
Copy link to clipboard
Copied
Hi, haxtbh​,
Thanks for your reply. I kind of suspected (given that I couldn't find anything on Google) that was the case. Bummer. Seems, to me, that if CFDIRECTORY knows enough of NTFS to create a folder, it should be able to set attributes like it does for *nix.
Not that it's going to stop me from doing what I'm doing, so far. This is for an intranet, so no public access. But, still, it would have been nice to have that extra layer of security.
V/r,
^_^

