Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   File System Object - not deleting file (http://www.velocityreviews.com/forums/t801403-file-system-object-not-deleting-file.html)

Lise 06-06-2006 06:59 PM

File System Object - not deleting file
 
I am using the File System Object to create server side cookies and part of
the Function that I am writing deletes a file but I am getting a permissions
denied error on that line of code.

I am using Integrated security only on this site but how do I get the
IUSER_Machinename account to work with Integrated Security?

- Lisa



Anthony Jones 06-06-2006 09:03 PM

Re: File System Object - not deleting file
 

"Lise" <liseg@comcast.net> wrote in message
news:%230QEcuZiGHA.2220@TK2MSFTNGP05.phx.gbl...
> I am using the File System Object to create server side cookies and part

of
> the Function that I am writing deletes a file but I am getting a

permissions
> denied error on that line of code.


Not entirely sure what a 'Server side cookie' is however I doubt that's
relevant
>
> I am using Integrated security only on this site but how do I get the
> IUSER_Machinename account to work with Integrated Security?
>


You can't IUSR_MachineName is the used to create a security token under
which the request runs when accessed anonymously. When using integrated
security the account provided by the client is used to generate the security
context.

Can you not give Domain Users the appropriate access to the file or the
folder where it resides?



> - Lisa
>
>




Lise 06-08-2006 03:06 PM

Re: File System Object - not deleting file
 
Hi Anthony .. Thanks for the reply ..

I have given "Everyone" Full control on that directory and even tried the
parent directory as well.
I'm thinking that since I'm using the FSO to create the text file, it's
being created by the IUSER_account (even though I'm using integrated
security) .. and then it's trying to delete the file as the domain user
accesing the page .. and maybe something isn't working properly there??

- L

"Anthony Jones" <Ant@yadayadayada.com> wrote in message
news:uwScoyaiGHA.3572@TK2MSFTNGP04.phx.gbl...
>
> "Lise" <liseg@comcast.net> wrote in message
> news:%230QEcuZiGHA.2220@TK2MSFTNGP05.phx.gbl...
> > I am using the File System Object to create server side cookies and part

> of
> > the Function that I am writing deletes a file but I am getting a

> permissions
> > denied error on that line of code.

>
> Not entirely sure what a 'Server side cookie' is however I doubt that's
> relevant
> >
> > I am using Integrated security only on this site but how do I get the
> > IUSER_Machinename account to work with Integrated Security?
> >

>
> You can't IUSR_MachineName is the used to create a security token under
> which the request runs when accessed anonymously. When using integrated
> security the account provided by the client is used to generate the

security
> context.
>
> Can you not give Domain Users the appropriate access to the file or the
> folder where it resides?
>
>
>
> > - Lisa
> >
> >

>
>




Aaron Bertrand [SQL Server MVP] 06-08-2006 03:14 PM

Re: File System Object - not deleting file
 
> I have given "Everyone" Full control on that directory

I strongly recommend undoing that...

You have to pick IUSR_machineName explicitly when applying permissions.
This account is not automatically included in "Everyone" IIRC.

www.winternals.com has some great file access monitoring tools that will
help you figure out what user(s) is trying to delete the file, then we can
all stop guessing.

A




All times are GMT. The time now is 09:19 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.