473,698 Members | 2,192 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

help IIS6 error 800a0046 permission denied wscript cmd.exe ftp

Microsoft VBScript runtime error '800a0046'

Permission denied
=============== ========
Trying to find the solution is driving me crazy.

Using IIS6 on Server2003 SBS
Default website localhost
IE7 browser running under administrator xp account login

trying to use WScript.Shell to call cmd.exe to start ftp session from
classic asp webscript using vbscript

I've searched for solutions, here is what I've done so far... (sorry this is
long, trying to explain it all in first post for best advice)

IIS Default Website Properties Home Directory Execute Permissions:
Scripts and Executables

IIS Default Website Permissions : Full Control to IIS_WPG, IUSR_srvr,
IWAM_srvr
Used Windows Explorer to set security Access Control Lists ACL for above
user accounts to Full Control on:
C:\Windows\Syst em32\cmd.exe
C:\Windows\Syst em32\wscript.ex e
C:\Windows\Syst em32\wshom.ocx
C:\Inetpub\wwwr oot (the location of the webscript causing the error and the
ftp commands stored in a text file)

Restarted the website under IIS, restarted IIS
Still have the same error.

Here is the script portion:

Set oScript = Server.CreateOb ject("WSCRIPT.S HELL")
Call oScript.Run("cm d.exe ftp.exe
-s:C:\inetpub\ww wroot\ftp_comma nds.txt"),0,Tru e)

Error occurs on the last line shown above.

I tried using other cmd.exe arguments, such as ver and dir, with same
permissions problem

I ran SysInternals FileMon, and here is the log snippet:

387 12:37:46 AM w3wp.exe:1900 QUERY INFORMATION
C:\WINDOWS\syst em32\cmd.exe SUCCESS Attributes: A

so it appears to me that the permissions on cmd.exe are set correctly to
allow iusr_srvr to execute it...
Again, sorry this is so long, but I am really stumped and need some expert
advice on what to troubleshoot. thank you in advance.

Aug 13 '08 #1
2 10527
stevewa wrote:
Microsoft VBScript runtime error '800a0046'

Permission denied
=============== ========
Trying to find the solution is driving me crazy.

Using IIS6 on Server2003 SBS
Default website localhost
IE7 browser running under administrator xp account login

trying to use WScript.Shell to call cmd.exe to start ftp session from
classic asp webscript using vbscript

I've searched for solutions, here is what I've done so far... (sorry
this is long, trying to explain it all in first post for best advice)

IIS Default Website Properties Home Directory Execute
Permissions: Scripts and Executables

IIS Default Website Permissions : Full Control to IIS_WPG,
IUSR_srvr, IWAM_srvr
Used Windows Explorer to set security Access Control Lists ACL for
above user accounts to Full Control on:
C:\Windows\Syst em32\cmd.exe
C:\Windows\Syst em32\wscript.ex e
C:\Windows\Syst em32\wshom.ocx
C:\Inetpub\wwwr oot (the location of the webscript causing the error
and the ftp commands stored in a text file)

Restarted the website under IIS, restarted IIS
Still have the same error.

Here is the script portion:

Set oScript = Server.CreateOb ject("WSCRIPT.S HELL")
Call oScript.Run("cm d.exe ftp.exe
-s:C:\inetpub\ww wroot\ftp_comma nds.txt"),0,Tru e)

Error occurs on the last line shown above.

I tried using other cmd.exe arguments, such as ver and dir, with same
permissions problem

I ran SysInternals FileMon, and here is the log snippet:

387 12:37:46 AM w3wp.exe:1900 QUERY INFORMATION
C:\WINDOWS\syst em32\cmd.exe SUCCESS Attributes: A

so it appears to me that the permissions on cmd.exe are set correctly
to allow iusr_srvr to execute it...
Again, sorry this is so long, but I am really stumped and need some
expert advice on what to troubleshoot. thank you in advance.
Does ftp.exe require a user interface? If so, IIS will not allow it to be
run. If not, I don't see where you applied the above permissions to ftp.exe
itself.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Aug 13 '08 #2
Sorry I must have missed typing that part, but I tried setting permissions on
ftp.exe for IUSR_srvr

As far as I know ftp.exe is a command line interface, and does not raise a
dialog box. This code works on IIS5 on W2K IIS 5, but I guess IIS is super
locked down
Aug 13 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
19159
by: Yitzhak | last post by:
I am having "Permission denied" error while calling LogEvent method of WScript.Shell component. Basically, ASP page calls Windows Script Host Shell component to log events to the OS Application Event log. My environment: Windows Server 2003, IIS 6, WSH, Classic ASP, Vbscript Below is the code and the error: Code:
5
7039
by: Patrice FRITSCH | last post by:
I'm trying to run a batch file from an asp page using WScript.Shell object. Dim oWSH set oWSH= Server.CreateObject("WScript.Shell") call oWSH.Run("cmd.exe /c " & szCmd , 0, true) szCmd contains the program to execute (fop.bat with several parameters). But I'm getting the following error message :
9
19004
by: Jason | last post by:
it works from my logon (domain admin account), but everyone else gets Microsoft VBSCript runtime error '800a0046' Permission denied path/patj/script.asp line 16 I looked at a lot of articles and gave the IIS accounts full access to the mailroot folder, along with the 'regular' domain user account I am using to test... still no good. also to the directory in which the script(s) reside Anyone have a definitive answer on the permissions...
4
5382
by: rudster | last post by:
Hey there, I have a little puzzle that I am trying to solve. I would like to set a user's password in AD (2003) from an external (i.e. non-domain member) webserver (2003/IIS6) via an .asp page. The page itself consists of nothing more than vbs code. If I run the code as a stand-alone vbscript from the command line, it completes successfully; however, when executed from the .asp page I get: Microsoft VBScript runtime error '800a0046' ...
0
1092
by: rameshchoudhary | last post by:
Executing DOS Command through ASP & VB Script I am using these statements in asp Set objShell = Server.CreateObject( "WScript.Shell" ) objShell.Run "c:\windows\system32\cmd.exe exit" objShell.Run "c:\logs\p.bat " Set objShell = Nothing ' Bonus or cosmetic section to launch explorer to check file If err.number = vbEmpty then
0
6604
by: .nLL | last post by:
Erorr is --------------------- Microsoft VBScript runtime error '800a0046' Permission denied /a.asp, line 3 -----------------------
3
1518
by: zensunni | last post by:
This is the code I'm using: set wshell = CreateObject("WScript.Shell") wshell.run "C:\<websitedir>\test.bat" set wshell = nothing I've been getting this error: Microsoft VBScript runtime error '800a0046'
0
3400
by: private.anders | last post by:
Hi David! Really need 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).
3
5889
drhowarddrfine
by: drhowarddrfine | last post by:
I've been running this VBScript, gracefully written by InsertAlias, for two days now and it's been perfect. Tonight, for no reason at all, it fails with this error: Windows Script Host Line:7 Char:1 Error:Permission denied Code:800a0046 Source:Microsoft VBScript runtime error 'define vars
0
8603
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9026
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7723
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4366
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2328
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.