Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

permission denied on copyfile method

Status
Not open for further replies.

cat5ive

MIS
Dec 3, 2004
184
US
Hi,

I'm trying to copy file from one folder to another folder call TESTING (which is empty). I got error method permission denied. Here's my testing asp page

Thank in advance
Code:
<html>
<head>
	<title>Untitled</title>
</head>

<body>

<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")

fs.CopyFile "c:\inetpub\[URL unfurl="true"]wwwroot\test.aspx",[/URL] "c:\inetpub\[URL unfurl="true"]wwwroot\testing\"[/URL]

set fs=nothing
%>


</body>
</html>
 
If you have not changed the default security in the IIS web server then the action of copying the files will be attempted in the security context of the IUSR account.

If so you could disable anonymous access, grant IUSR more privilages, or use a different default account.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top