Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

An issue with accessing files outside of web root

LEGEND ,
Sep 21, 2012 Sep 21, 2012

Basically, this is an extension of this thread.

I have added a mapping in CF Admin.

I have:

C:\ColdFusion9\xcfc

C:\ColdFusion9\wwwroot

In CF Admin, I have added a mapping: /xcfc points to C:\ColdFusion9\xcfc

I used the following code:

<cfinclude template="/xcfc/test.txt" />

I get an error message:

Security: the requested template has been denied access to C:\ColdFusion\xcfc\test.txt

(java.io.FilePermission C:\ColdFusion\xcfc\test.txt execute.)

I read, somewhere, about making sure the CF user has rights.  But in my Users CP (Win7), there is only Administrator, Guest, and myself.

???

^_^

7.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 25, 2012 Sep 25, 2012

How can I log on as Local Service?  I assume that it has a password. 

My bad.. Local SYSTEM.  Sigh..

^_^

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 25, 2012 Sep 25, 2012

How can I log on as Local Service?  I assume that it has a password. 

http://msdn.microsoft.com/en-us/library/windows/desktop/ms684188(v=vs.85).aspx

(which I got from GOOGLING "windows default "local system" account password"):

"Note that this account does not have a password, so any password information that you provide in this call is ignored."

--

Adam

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 25, 2012 Sep 25, 2012

I googled "log on as local system" and got nuttin'..

I tried logging on as "LocalSystem", ".\LocalSystem", and "{computer name}\LocalSystem", all responded with "Username or password is incorrect." 

^_^

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 25, 2012 Sep 25, 2012

So, I tried going to a command prompt and using the following (without quotes) "at 10:00 /interactive cmd.exe" and it's not doing anything.  😕  I cannot seem to log on as Local System.

^_^

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 26, 2012 Sep 26, 2012
LATEST

Scratch what I originally wrote in this post.  It suddenly started working and I have NO idea why.

^_^

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources