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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Permission Denied when copy a file to another server in ASP

Status
Not open for further replies.

YYKK

Programmer
Sep 4, 2003
9
US
I wrote a web application using ASP. I need to create a text file and copy it over to another server's shared folder. The shared folder has given write/read permission to EVERYONE. I have tried to copy a text file over manually without any problem. But I got permission denied when I run the web application. I believe the web application uses it's machine ID to access the shared folder and the machine ID in not included in EVERYONE. Could anyone help me to find a solution? I'm lack of network/security knowledge.

Thanks a lot in advance,
YK
 
The anonymous internet user account IUSR_<Machine Name> must have write permissions on that folder if you're using .asp (a web page) to copy/move files.
 
Veep,

Is there any other choices? What about if use &quot;Integrated Authentication&quot;, what machine id should be added to have permission to the shared folder?

Thanks,
Yan
 
Veep,

Is there any other choices? What about if use &quot;Integrated Authentication&quot;, what machine id should be added to have permission to the shared folder?

Thanks,
YK
 
Not sure about choices. The way I look at it, a web page (IUSR_<MACHINENAME> anonymous) is the enemy of any File system. For the web page to perform any action on a given file system you have to grant permissions for that anonymous user. I don't think that Integrated Security will work because who is IUSR_MachineName? What is is LanID? If you come up with an alternate solution let me know. Thanks.
 
Veep,

I can not add IUSR_machinename to the shared folder as the IUSR_machinename is only visible for the local PC. What I need to do to make the IUSR_machinename visible throught the network and can be added access permission to the shared folder.

Thanks,
YK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top