File System Object - not deleting file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lise

    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_Machinena me account to work with Integrated Security?

    - Lisa


  • Anthony Jones

    #2
    Re: File System Object - not deleting file


    "Lise" <liseg@comcast. net> wrote in message
    news:%230QEcuZi GHA.2220@TK2MSF TNGP05.phx.gbl. ..[color=blue]
    > I am using the File System Object to create server side cookies and part[/color]
    of[color=blue]
    > the Function that I am writing deletes a file but I am getting a[/color]
    permissions[color=blue]
    > denied error on that line of code.[/color]

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

    You can't IUSR_MachineNam e 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?


    [color=blue]
    > - Lisa
    >
    >[/color]


    Comment

    • Lise

      #3
      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@yadayadaya da.com> wrote in message
      news:uwScoyaiGH A.3572@TK2MSFTN GP04.phx.gbl...[color=blue]
      >
      > "Lise" <liseg@comcast. net> wrote in message
      > news:%230QEcuZi GHA.2220@TK2MSF TNGP05.phx.gbl. ..[color=green]
      > > I am using the File System Object to create server side cookies and part[/color]
      > of[color=green]
      > > the Function that I am writing deletes a file but I am getting a[/color]
      > permissions[color=green]
      > > denied error on that line of code.[/color]
      >
      > Not entirely sure what a 'Server side cookie' is however I doubt that's
      > relevant[color=green]
      > >
      > > I am using Integrated security only on this site but how do I get the
      > > IUSER_Machinena me account to work with Integrated Security?
      > >[/color]
      >
      > You can't IUSR_MachineNam e 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[/color]
      security[color=blue]
      > context.
      >
      > Can you not give Domain Users the appropriate access to the file or the
      > folder where it resides?
      >
      >
      >[color=green]
      > > - Lisa
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Aaron Bertrand [SQL Server MVP]

        #4
        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_machineNam e 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


        Comment

        Working...