Permission denied

Discussion in 'ASP General' started by private.anders@gmail.com, Apr 25, 2008.

  1. Guest

    Really need your assistance since I have been struggling with a
    problem long time now.

    I am running a web application on a Win 2003 Std (Active Directory).
    Everything works fine. I have installed same application on another
    server Win 2003 R2 Std (No Active Directory). On that server I get
    “Permission denied” using the following code (used to zip folder
    content).

    set WshShell = server.createobject("wscript.shell")
    strZipIt = "wzzip -a " & ZIPFILE_PATH & " " & FOLDER_TO_ZIP & "\*.*"
    WshShell.run strZipIt, 0, true

    If I run web application under Administrator account it works fine. I
    have also tried to change from Winzip command to run a simple bat-
    file. Still permission denied.

    I have added read & execution rights to for instance IUSR_Machine,
    IWAM_Machine on cmd.exe, wscript.exe, cscript.exe. Still permission
    denied.

    Running Process Monitor I will find a lot of Access Denied results
    especially on registry (RegCreateKey, RegOpenKey).

    Some lines from Process Monitor:
    85635 14:57:58,2925146 w3wp.exe 6132 RegOpenKey HKLM\System
    \CurrentControlSet\Services\W3SVC\Parameters ACCESS DENIED
    91600 14:57:58,6138074 w3wp.exe 6132 RegOpenKey HKLM\Software\ODBC
    \ODBC.INI ACCESS DENIED
    92460 14:57:58,6294938 w3wp.exe 6132 RegOpenKey HKLM\SOFTWARE\Microsoft
    \MSSQLServer\Client\SuperSocketNetLib\LastConnect ACCESS DENIED
    92564 14:57:58,6354152 w3wp.exe 6132 RegCreateKey HKLM\SOFTWARE
    \Microsoft\MSSQLServer\Client\SuperSocketNetLib\LastConnect ACCESS
    DENIED
    92575 14:57:58,6355547 w3wp.exe 6132 RegCreateKey HKLM\SOFTWARE
    \Microsoft\MSSQLServer\Client\SuperSocketNetLib\LastConnect ACCESS
    DENIED
    92629 14:57:58,6381242 w3wp.exe 6132 CreateFile C:\WINDOWS\Debug
    \UserMode\ChkAcc.log ACCESS DENIED Desired Access: Read Attributes,
    Delete, Synchronize, Disposition: Open, Options: Synchronous IO Non-
    Alert, Open Reparse Point, Attributes: n/a, ShareMode: Read, Write,
    Delete, AllocationSize: n/a, Impersonating: WEBFRONT1\IUSR_WEBFRONT1
    92636 14:57:58,6383124 w3wp.exe 6132 CreateFile C:\WINDOWS\Debug
    \UserMode\ChkAcc.log ACCESS DENIED Desired Access: Generic Write, Read
    Attributes, Disposition: OverwriteIf, Options: Synchronous IO Non-
    Alert, Non-Directory File, Attributes: n/a, ShareMode: Read,
    AllocationSize: 0, Impersonating: WEBFRONT1\IUSR_WEBFRONT1
    93350 14:57:58,6852424 w3wp.exe 6132 RegCreateKey HKLM\Software
    \Description\Microsoft\Rpc\UuidTemporaryData ACCESS DENIED
    93359 14:57:58,6853466 w3wp.exe 6132 RegCreateKey HKLM\SOFTWARE
    \Description\Microsoft\Rpc\UuidTemporaryData ACCESS DENIED
    94030 14:57:58,7121528 w3wp.exe 6132 RegCreateKey HKU\S-1-5-20\SOFTWARE
    \Microsoft\Windows\CurrentVersion\Internet Settings ACCESS DENIED
    94031 14:57:58,7121755 w3wp.exe 6132 RegCreateKey HKU
    \S-1-5-20\SOFTWARE ACCESS DENIED
    94214 14:57:58,7202279 w3wp.exe 6132 RegOpenKey HKU\S-1-5-20\Software
    \Microsoft\Windows\CurrentVersion\Explorer ACCESS DENIED
    94229 14:57:58,7213894 w3wp.exe 6132 RegOpenKey HKU\S-1-5-20\Software
    \Microsoft\Windows\CurrentVersion\Policies\Explorer ACCESS DENIED
    94234 14:57:58,7214526 w3wp.exe 6132 RegOpenKey HKU\S-1-5-20\Software
    \Microsoft\Windows\CurrentVersion\Policies\Explorer ACCESS DENIED

    Would be grateful if you could give me a hint how to solve this
    problem.

    - Anders
     
    , Apr 25, 2008
    #1
    1. Advertising

  2. wrote:
    >
    > Would be grateful if you could give me a hint how to solve this
    > problem.
    >

    Would really be grateful if you would stop hitting that Send button ...
    ;-)

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.
     
    Bob Barrows [MVP], Apr 25, 2008
    #2
    1. Advertising

  3. Guest

    On 25 Apr, 16:50, "Bob Barrows [MVP]" <>
    wrote:
    > wrote:
    >
    > > Would be grateful if you could give me a hint how to solve this
    > > problem.

    >
    > Would really be grateful if you would stop hitting that Send button ...
    > ;-)
    >
    > --
    > Microsoft MVP -- ASP/ASP.NET
    > Please reply to the newsgroup. The email account listed in my From
    > header is my spam trap, so I don't check it very often. You will get a
    > quicker response by posting to the newsgroup.


    Oops, I am sorry :(
     
    , Apr 25, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Goblin
    Replies:
    1
    Views:
    8,457
  2. Chris
    Replies:
    1
    Views:
    850
    Roy Johnson
    Oct 28, 2003
  3. Kevin Spencer
    Replies:
    3
    Views:
    3,001
    Kevin Spencer
    Aug 15, 2003
  4. Dave M.
    Replies:
    0
    Views:
    466
    Dave M.
    Nov 18, 2003
  5. =?Utf-8?B?ZmVzdGl2YWxtYW4=?=

    permission denied on an asp that's sending mail

    =?Utf-8?B?ZmVzdGl2YWxtYW4=?=, Jan 26, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,973
    Chris Jackson
    Jan 26, 2004
Loading...

Share This Page