Reputation: 9411
I get the following error:
Microsoft VBScript runtime error '800a0046' Permission denied
When running a classic asp application.
The error is here: (in the CreateTextFile
line)
Dim myFSO
set myFSO = Server.CreateObject("Scripting.FileSystemObject")
myFSO.CreateTextFile(fName)
I know I can get around this problem by giving "Full control" to the "Everyone" user. This is a publicly accessible folder on our server, so I worry that this is a security risk?
I would prefer to be able to give full permission to someone like "IIS_IUSRS", but this doesn't work. It's as if it's a different user being used for this.
Is this a security risk? Anyone know what I should be doing?
Upvotes: 4
Views: 45051
Reputation: 118
You should either find the anonymous user of your specific website and give write access to that specific user or set the application pool identity of the website to Local System so that the website would have permission.
To find your IUSR also known as the anonymous user in IIS7, open your website in IIS in Features View and go to Authentication and edit Anonymous Authentication.
Upvotes: 6