Web Hosting Talk







View Full Version : [IIS] File Permission


azizny
09-28-2004, 06:54 PM
This problem I have faced many times... many people have faced, but there seems to be no solution to it?

When trying to edit or delete a file in Windows IIS it will not work giving you the famous error:

Permission denied in c:\inetpub .....

I looked around for a solution and coludn't.

Has anyone every solved it?

Peace,

Georgecooldude
09-29-2004, 07:30 AM
adjust the file so that it is shared for all users. That worked for me.

Right click - Click sharing tab etc

delirium
09-29-2004, 09:13 AM
if you are trying to delete while on the machine its probably because the file is in use, stop W3C and delete the file, you might need to stop IISADMIN service as well before deleting, if you are talking about deleting a file using a ASP scrip then you need to give delete permissions on that folder to the ISUR_MACHINENAME account.

azizny
09-29-2004, 09:36 AM
Originally posted by Georgecooldude
adjust the file so that it is shared for all users. That worked for me.

Right click - Click sharing tab etc

Can not share a file individual, so I shared the whole folder and still it didnt work..

something I noticed is that when the file is created by me then I can write to it (from same call)..

If I create it manual then it wont allow it

peace,

azizny
09-29-2004, 09:42 AM
Originally posted by delirium
if you are trying to delete while on the machine its probably because the file is in use, stop W3C and delete the file, you might need to stop IISADMIN service as well before deleting, if you are talking about deleting a file using a ASP scrip then you need to give delete permissions on that folder to the ISUR_MACHINENAME account.

its a php script thats doing it..

I can not stop the server as I might be on a shared one..

I guess its always better to stick to database

later,

delirium
09-29-2004, 10:38 AM
If the PHP Script is running through IIS then give delete permisssions to the ISUR_MACHINENAME (Which is the account impersonated by IIS)