|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Avoid common pitfalls of incorporating spreadsheets into Java apps. Read about it in the free white paper: “Five Biggest Blunders when Building Spreadsheet Applications in Java” Download Now! |
|
#1
|
|||
|
|||
|
<cffile> and permissions
I have noticed lots of cffile threads here over the months, but havent found this yet (im sorry if i missed it). The cfdocs, and the cfWACK havent helped me.
I am runing cfmx6.1 on rh9. While trying to use to use <cffile> to spit out an xml file, I get the following error: An error occurred when performing a file operation Write on file /var/www/virtual/shopping/pillow/content/1.xml. The cause of this exception was: java.io.FileNotFoundException: /var/www/virtual/shopping/pillow/content/1.xml (Permission denied). which you would think is just a simple file permissions error, unfortunatly it isnt . I went as far as making this folder (content/) chmod 777, yet still nothing. The specific cffile line is: <cffile action="Write" file="#curDirectory#content/#t_file#" output="#iWddxtext#" mode="666">the path it outputs is correct (checked case) and it *should* be able to write in there. I was under the impression that the coldfusion process ran as a superuser. Any thoughts? Any ideas on what it could be / i should try? Last edited by edixon : May 5th, 2004 at 01:50 AM. |
|
#2
|
|||
|
|||
|
I've never run CF under Red Hat so I am less familiar with how it runs on RH. On Windows, the CFMX/JRun services can run under local system authority, or under a designated user account that you assign specific permissions to. Obviously, the latter is much more secure.
Can you write files ANYWHERE, or is it just that directory? Does trying different values for MODE make any difference? |
|
#3
|
|||
|
|||
|
Problem fixed.
I deleted the folder, remade it as su, and then changed owner, and permissions. Im thinking that is a linux bug... Regardless, taht was odd |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > <cffile> and permissions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|