Previous Next

Thread: Setting Permissions for FSO

Last post 06-07-2008 9:10 PM by Datagnostics. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 06-07-2008, 3:51 PM

    • Datagnostics
    • Not Ranked
    • Joined on 01-11-2008, 12:45 PM
    • Posts 5
    • Datagnostics

    Setting Permissions for FSO

    I am running IIS7 on Vista. I am trying to use FileSystemObject to copy a file (i.e. create a new file with the same contents as an old one). I am running on localhost, in a subdirectory which contains both the file I want to copy and the .asp script for copying it.

    I have gone to the subdirectory in Windows Explorer and set every User I can find to have Modify, Read&Execute, & Write permissions:

    [myname]([computer]\[myname]

    Users ([computer]\Users)

    IIS_IUSRS ([computer]\IIS_IUsers)

    Nonetheless, I still get "Microsoft VBScript runtime  error '800a0046'

    Permission denied"

    Is there somewhere else I should be setting permissions? Should I do something with the IIS manager via either the UI or the command line? 

  • 06-07-2008, 4:48 PM In reply to

    Re: Setting Permissions for FSO

    Enable auditing in local security policy, reproduce the issue and check the security event log.   Here is a blog showing how to enable auditing.

    http://weblogs.asp.net/steveschofield/archive/2008/03/07/detecting-permission-issues-using-auditing-and-process-monitor.aspx

     

    Steve Schofield
    Windows Server MVP - IIS
    MCTS - Windows Hosting

    http://weblogs.asp.net/steveschofield
    http://www.iislogs.com
    http://www.orcsweb.com/
    Managed Hosting Solutions
    #1 in Service and Support
  • 06-07-2008, 9:10 PM In reply to

    • Datagnostics
    • Not Ranked
    • Joined on 01-11-2008, 12:45 PM
    • Posts 5
    • Datagnostics

    Re: Setting Permissions for FSO

    I enabled auditing, re-ran the script, and am looking at the Event Log and can't make heads nor tails of it.

    What am I supposed to be looking for? There are a bunch of messages, including:

     

    A handle to an object was requested.

    Subject:
        Security ID:        [computer]\[name]
        Account Name:        name
        Account Domain:        computer
        Logon ID:        0x25490

    Object:
        Object Server:        Security
        Object Type:        File
        Object Name:        C:\Windows\System32\eventvwr.msc
        Handle ID:        0x0

    Process Information:
        Process ID:        0x668
        Process Name:        C:\Windows\System32\mmc.exe

    Access Request Information:
        Transaction ID:        {00000000-0000-0000-0000-000000000000}
        Accesses:        READ_CONTROL
                SYNCHRONIZE
                WriteData (or AddFile)
                AppendData (or AddSubdirectory or CreatePipeInstance)
                WriteEA
                ReadAttributes
                WriteAttributes
               
        Access Mask:        0x120196
        Privileges Used for Access Check:    -
        Restricted SID Count:    0

     ---------

    What does it mean? How do I find out?
     

Page 1 of 1 (3 items)
Page view counter