Link to home
Start Free TrialLog in
Avatar of jturkington
jturkington

asked on

CFFILE Read Issue From Mapped Drive

I am having real problems trying to work this one out !!

I have a folder called profiles on a server (192.168.0.120 which is fedora core3 with samba, READ Permission Only for user jimmy)

I have a CFMX6.1 Server (192.168.0.110 Windows 2003 Web Edition)

I have mapped a Drive(P:\) on the CFMX server to point to \\192.168.0.120\profiles and specified a username and password for it in the mapped drive options (jimmy, password)

I can open the mapped drive from the CFMX servers mycomputer and open up the xml files no problem within the mapped drive

However when i try to use the cffile tag within coldfusion i get the following errors:  -

With this code:  -
<cffile action="read" file="P:\ins00000304.xml" variable="myxml">

I get this error:  -

An error occurred when performing a file operation read on file P:\ins00000304.xml.  
The cause of this exception was: java.io.FileNotFoundException: P:\ins00000304.xml (The system cannot find the path specified).  

With this code: -
<cffile action="read" file="\\192.168.0.120\profiles\ins00000304.xml" variable="myxml">

I get this error: -

An error occurred when performing a file operation read on file \\192.168.0.120\profiles\ins00000304.xml.  
The cause of this exception was: java.io.FileNotFoundException: \\192.168.0.120\profiles\ins00000304.xml (Logon failure: unknown user name or bad password).  


I am logged into the CFMX server with the local admin account (administrator,password)
I have tried setting up an account with (Jimmy,password) on the CFMX server but this made no difference !?

Running out of ideas on how to overcome this issue ?!

Cheers

JT
Avatar of jtreher
jtreher

Well, the second error makes sense because you aren't passing any logon info to the CFFILE. If your coldfusion user account doesn't have permission to the folder then you can't get to it. If you are using the local admin account, you will need to give that account permissions on the folder. The other server won't trust the other local coldfusion admin by default.
Avatar of jturkington

ASKER

im confused , the coldfusion server service runs under the local system account by default, it should have nothing to do with the local admin account ?!?

The CFFILE should work even when the CFMX server is sitting at the CTRL ALT DEL login page of windows with nobody logged in ??  right ?


Cheers

JT
SOLUTION
Avatar of Tacobell777
Tacobell777

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
CF runs under and account, you can see this when you open up SERVICES and double click the coldfusion entry, this acocunt needs to have access to the drive you are trying to access.
Tried setting the run as account under coldfusion server service to jimmy but it messed up coldfusion starting, what permission levels does the user account need to run the coldfusion server service happily , local admin, power user etc...

Cheers

JT
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
EHH ??

The Coldfusion Server Service is running as the LOCAL system Account by default !

Is this the same as the local admin account  of the server ? (Slightly Confused on this one ?)

Cheers

JT
Administrator account of that machine.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You know the MS way - always grant permissions to groups, not to users :)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I just ate at tacobell.