It's been a while since I used ColdFusion - I have forgotten many concepts 
How, if possible, can I script ColdFusion to change the file
attributes (MODE) of a specific file located in CF Server's root directory(running on Linux)?
For example:
I have a file named "myfile.txt" located in the /var/chroot/html/ web root directory. The "myfile.txt" only has "Read" rights. Now, in my CF app, I want a user to be able to Delete the "myfile.txt" file (i.e.<cffile action="delete"....>. However, CF will fail on the execution
of the <cffile action="delete"...> tag since the file doesn't have "Write" rights.
Ideally, prior to deleting a file, I would like to check it's attributes. If the file does not have 'Write" rights, then I would like to change the rights (file attributes) of the file to "777" (rwx). Is this possible? If so, how?
By the way, it's nice to see a lot of the familiar names that are still making this forum tick! - Can you believe we're getting close to 10 years on this forum!
How, if possible, can I script ColdFusion to change the file
attributes (MODE) of a specific file located in CF Server's root directory(running on Linux)?
For example:
I have a file named "myfile.txt" located in the /var/chroot/html/ web root directory. The "myfile.txt" only has "Read" rights. Now, in my CF app, I want a user to be able to Delete the "myfile.txt" file (i.e.<cffile action="delete"....>. However, CF will fail on the execution
of the <cffile action="delete"...> tag since the file doesn't have "Write" rights.
Ideally, prior to deleting a file, I would like to check it's attributes. If the file does not have 'Write" rights, then I would like to change the rights (file attributes) of the file to "777" (rwx). Is this possible? If so, how?
By the way, it's nice to see a lot of the familiar names that are still making this forum tick! - Can you believe we're getting close to 10 years on this forum!