CreateTextFile in secure FTP folder

J

Jennifer

Hello

I get permission denied at line 4 in the following ASP Script
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.CreateTextFile("test.txt",true)
response.write "here"
f.write("Hello World!")
f.write("How are you today?")
f.close
set f=nothing
set fs=nothing
%>

I have write permission on the folder, but the folder is also secured for
FTP. Should I somehow pass FTP permissions in this script?

Kind Regards

Jennifer
 
O

Old Pedant

Jennifer said:
I have write permission on the folder, but the folder is also secured for
FTP. Should I somehow pass FTP permissions in this script?

It's not relevant whether _you_ have permisson on the folder. The question
is whether IIS has permissions. ASP runs under the aegis of the IIS "user",
which is named "IUSR_xxx" where "xxx" is the name of the machine where IIS is
running.

*THAT* is the user that must have full persmissions on the folder.
 
J

Jennifer

Thank you Old Pedant

Old Pedant said:
It's not relevant whether _you_ have permisson on the folder. The question
is whether IIS has permissions. ASP runs under the aegis of the IIS "user",
which is named "IUSR_xxx" where "xxx" is the name of the machine where IIS is
running.

*THAT* is the user that must have full persmissions on the folder.
 
F

francis

Hi,

I noticed that if use

set f=fs.CreateTextFile("c:\test.txt",true)

intead of

set f=fs.CreateTextFile("test.txt",true)

the program runs fine. Is the problem still connected with IUSR_xxx?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top