Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > access denied

Reply
Thread Tools

access denied

 
 
P1
Guest
Posts: n/a
 
      09-05-2008
Hey guys,
I'm totally out of my league here, I don't even know how I got stuck
with this problem, it's obviously a webmaster issue and I'm just a lowly
net admin.

The error:

Starts here
9/5/2008 6:00:41 PM
Microsoft VBScript runtime error '800a0046'
Permission denied
/groupCalPDF.asp, line 19

Line 19 starts with wshell.run in the script below:

<%
response.Expires = 0
dim wshell, url, filename, memberid
'on error resume next
Response.Write("Starts here<br/>")

%>
<pre>
<%=now()%>

</pre>
<%

memberid = Request("memberid")
url = Request("url")
filename = "cal"& memberid &".pdf"

set wshell = CreateObject("WScript.Shell")
wshell.run "%comspec% /c c:\htmltools\htmltools.exe -append 0 """& url
&""" ""c:\PDFTemp\" & filename &""" >c:\htmltools\log.txt", 0, TRUE
set wshell = nothing

Response.write "Passed through<br/>"

if err.number <> 0 then
response.write "Error detected: " & err.number & ": " &
err.Description & "<br/>"
on error goto 0
response.end
end if
on error goto 0

Response.write "Run successfully<br/>"

Response.Redirect("http://calpdf.domain1.com/PDFTemp/" & filename)
%>
<pre>
<%=now()%>

</pre>


IIS and permissions:
The website has Scripts and Executables permissions.
The folder containing the asp script and htmltools.exe have full NTFS
permissions for IUSR_ account.

Some of the commands in the script I put in as part of suggestions found
while researching this problem. If I uncomment the "on error resume
next" line, the error changes to:

Starts here
9/5/2008 6:00:58 PM
Passed through
Error detected: 70: Permission denied

I've been using ProcMon but I can't find any errors, other than a couple
of BUFFER OVERFLOWs, which someone suggested can be ignored.

This is a revisited problem that I thought was solved before but is now
back with a vengeance. Before, procmon would report access denied
errors to c:\windows\system32\cmd.exe but once I gave IUSR_ permissions
to it, the problem was solved. Now I even removed those permissions but
procmon is NOT reporting the same error as before.

I'm lost, please help?

Thanks,
LP
 
Reply With Quote
 
 
 
 
Ken Schaefer
Guest
Posts: n/a
 
      09-06-2008
IUSR account doesn't have access to cmd.exe by default (assuming you are
using anonymous authentication). This is a security measure designed to
prevent anonymous users being able (e.g. via faulty code) from being able to
access a command prompt and run arbitrary commands on your server.

Cheers
Ken

"P1" <> wrote in message
news:O8jwk.7476$ io.net...
> Hey guys,
> I'm totally out of my league here, I don't even know how I got stuck with
> this problem, it's obviously a webmaster issue and I'm just a lowly net
> admin.
>
> The error:
>
> Starts here
> 9/5/2008 6:00:41 PM
> Microsoft VBScript runtime error '800a0046'
> Permission denied
> /groupCalPDF.asp, line 19
>
> Line 19 starts with wshell.run in the script below:
>
> <%
> response.Expires = 0
> dim wshell, url, filename, memberid
> 'on error resume next
> Response.Write("Starts here<br/>")
>
> %>
> <pre>
> <%=now()%>
>
> </pre>
> <%
>
> memberid = Request("memberid")
> url = Request("url")
> filename = "cal"& memberid &".pdf"
>
> set wshell = CreateObject("WScript.Shell")
> wshell.run "%comspec% /c c:\htmltools\htmltools.exe -append 0 """& url
> &""" ""c:\PDFTemp\" & filename &""" >c:\htmltools\log.txt", 0, TRUE
> set wshell = nothing
>
> Response.write "Passed through<br/>"
>
> if err.number <> 0 then
> response.write "Error detected: " & err.number & ": " & err.Description
> & "<br/>"
> on error goto 0
> response.end
> end if
> on error goto 0
>
> Response.write "Run successfully<br/>"
>
> Response.Redirect("http://calpdf.domain1.com/PDFTemp/" & filename)
> %>
> <pre>
> <%=now()%>
>
> </pre>
>
>
> IIS and permissions:
> The website has Scripts and Executables permissions.
> The folder containing the asp script and htmltools.exe have full NTFS
> permissions for IUSR_ account.
>
> Some of the commands in the script I put in as part of suggestions found
> while researching this problem. If I uncomment the "on error resume next"
> line, the error changes to:
>
> Starts here
> 9/5/2008 6:00:58 PM
> Passed through
> Error detected: 70: Permission denied
>
> I've been using ProcMon but I can't find any errors, other than a couple
> of BUFFER OVERFLOWs, which someone suggested can be ignored.
>
> This is a revisited problem that I thought was solved before but is now
> back with a vengeance. Before, procmon would report access denied errors
> to c:\windows\system32\cmd.exe but once I gave IUSR_ permissions to it,
> the problem was solved. Now I even removed those permissions but procmon
> is NOT reporting the same error as before.
>
> I'm lost, please help?
>
> Thanks,
> LP


 
Reply With Quote
 
 
 
 
P1
Guest
Posts: n/a
 
      09-09-2008
Ken Schaefer wrote:
> IUSR account doesn't have access to cmd.exe by default (assuming you are
> using anonymous authentication). This is a security measure designed to
> prevent anonymous users being able (e.g. via faulty code) from being
> able to access a command prompt and run arbitrary commands on your server.
>
> Cheers
> Ken
>
> "P1" <> wrote in message
> news:O8jwk.7476$ io.net...
>> Hey guys,
>> I'm totally out of my league here, I don't even know how I got stuck
>> with this problem, it's obviously a webmaster issue and I'm just a
>> lowly net admin.
>>
>> The error:
>>
>> Starts here
>> 9/5/2008 6:00:41 PM
>> Microsoft VBScript runtime error '800a0046'
>> Permission denied
>> /groupCalPDF.asp, line 19
>>
>> Line 19 starts with wshell.run in the script below:
>>
>> <%
>> response.Expires = 0
>> dim wshell, url, filename, memberid
>> 'on error resume next
>> Response.Write("Starts here<br/>")
>>
>> %>
>> <pre>
>> <%=now()%>
>>
>> </pre>
>> <%
>>
>> memberid = Request("memberid")
>> url = Request("url")
>> filename = "cal"& memberid &".pdf"
>>
>> set wshell = CreateObject("WScript.Shell")
>> wshell.run "%comspec% /c c:\htmltools\htmltools.exe -append 0 """& url
>> &""" ""c:\PDFTemp\" & filename &""" >c:\htmltools\log.txt", 0, TRUE
>> set wshell = nothing
>>
>> Response.write "Passed through<br/>"
>>
>> if err.number <> 0 then
>> response.write "Error detected: " & err.number & ": " &
>> err.Description & "<br/>"
>> on error goto 0
>> response.end
>> end if
>> on error goto 0
>>
>> Response.write "Run successfully<br/>"
>>
>> Response.Redirect("http://calpdf.domain1.com/PDFTemp/" & filename)
>> %>
>> <pre>
>> <%=now()%>
>>
>> </pre>
>>
>>
>> IIS and permissions:
>> The website has Scripts and Executables permissions.
>> The folder containing the asp script and htmltools.exe have full NTFS
>> permissions for IUSR_ account.
>>
>> Some of the commands in the script I put in as part of suggestions
>> found while researching this problem. If I uncomment the "on error
>> resume next" line, the error changes to:
>>
>> Starts here
>> 9/5/2008 6:00:58 PM
>> Passed through
>> Error detected: 70: Permission denied
>>
>> I've been using ProcMon but I can't find any errors, other than a
>> couple of BUFFER OVERFLOWs, which someone suggested can be ignored.
>>
>> This is a revisited problem that I thought was solved before but is
>> now back with a vengeance. Before, procmon would report access denied
>> errors to c:\windows\system32\cmd.exe but once I gave IUSR_
>> permissions to it, the problem was solved. Now I even removed those
>> permissions but procmon is NOT reporting the same error as before.
>>
>> I'm lost, please help?
>>
>> Thanks,
>> LP

>


Yes, I know. Last time I came across this problem I added the permission
explicitly. Now that the problem is back, I removed it just for
troubleshooting, to be able to see the deny error in procmon, but it
doesn't show.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very annoying error: Access to the path is denied. ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity Jay ASP .Net 2 08-20-2007 07:38 PM
403 Forbidden: You were denied access because: Access denied by access control list Southern Kiwi NZ Computing 6 03-19-2006 05:19 AM
Access Denied to access db with asp.net Ros@ ASP .Net 3 02-22-2006 04:51 PM
e-mail access denied by access control list Ram Ananthraman Computer Support 4 03-17-2005 09:22 PM
access denied by access control list Hung Computer Support 8 10-12-2003 05:27 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57