Skip to main content
Inspiring
August 17, 2010
Question

cffile and permissions issue

  • August 17, 2010
  • 2 replies
  • 651 views

I developed an application in my development server which performs some cffile write operations. The new files get created/written in a directory --let's call it mydirectory-- and then used for other purposes.

I thought I was done with my project. But when I moved my code to the staging server from development, I get an exception. The exception occurs when my script tries to write the file to mydirectory in the new server. I checked the permissions of my user doman and I --and my my group-- have super user privileges so I don't understand why writing access to mydirectory is being restricted.

I wonder if someone else in the community has run into the same thing.

Any thoughts would be greatly appreciated!

This topic has been closed for replies.

2 replies

Inspiring
August 17, 2010

What you need to check are the privs of the account that CF Server is running under.  By default (on Windows) it does not run under a user account, and has no privs to access network resources.  You need to go to the services menu and open the entry for CF Application Server, then click on LOGIN.  That is where you enter the info for what Windows user account (and its password) to run under.  Note that this is not a setting that is migrated during an upgrade.

-reed

Inspiring
August 17, 2010

It doesn't matter what permissions you have, it matter what permissions the CF service has...

--

Adam

Inspiring
August 17, 2010

This is a new concept to me...How do you set permissions to the CF Service?