Re: Run executables IIS 6

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 02/23/05


Date: Tue, 22 Feb 2005 16:02:37 -0800

In addition to what JRG has said, I'd just like to clarify what the basic
IIS6 security amounts to.

IIS6 disallows download of content that does not have an associated MIME
Type and disallows execution of binaries that do not have an enabled Web
Service Extension.

This means that:
1.You must have a MIMEMap entry for the given extension that you want to
allow IIS6 to download.
2. You must have an enabled Web Service Extension for the given binary file
that you want to allow IIS6 to execute as an ISAPI or CGI.

These requirements are on top of any other requirements.

Thus, the full list for allowing executables to run would include:
1. NTFS ACLs to allow Read/Execute permissions to IIS_WPG and the remote
impersonated identity (depends on authentication methods allowed in IIS for
that URL namespace)
2. IIS Permissions to allow "Scripts" or "Scripts and Executables" in the
given URL namespace
3. If it is a Script, then the Script Mapping of the extension to the
ScriptEngine must exist
4. The binary executable being executed, either directly as ISAPI/CGI or
indirectly as a ScriptEngine, must have an enabled Web Service Extension.

#4 is the new thing added in IIS6. Everything else is the same as before.

These security issues can be diagnosed by looking at the web logs at
%windir%\System32\LogFiles\W3SVC#\*.log and locating the HTTP
status/sub-status as well as Win32 error code. The F1 help in IIS Manager UI
has a "Troubleshooting" section to help.

-- 
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Sue" <Sue@discussions.microsoft.com> wrote in message
news:CF9CBC43-2E38-429F-8F41-DE903DBAF461@microsoft.com...
I have read that IIS by default does not allow a web application to run
executables.  And I read that the way to change that is to use IIS Manager
to
give Read/Execute permissions.  I have done that at the directory and
individual file level for the files I am trying to execute.  I have also
given security at the file level in Windows Explorer.  However, it is still
not letting me run an executable.  All other viewing, some of which includes
getting data from a SQL database is working fine.
Is there something else that needs to be done to allow executables to be
run?
How can I check what username my application is using to make sure that I
have given the correct permissions to the correct user?
Windows Server 2003
IIS 6.0
PHP 4
Now, before you say that PHP is the problem... it WAS working before.  I was
installing the 'Prerequisites' for Visual Studio.NET which I believe was
only
the Front Page Extensions.  That is when this part of the application quit
working.  The applications I am calling still work independently, just not
when they are called from the web app.
Please help... they are going to drag me away to the crazy farm soon...


Relevant Pages

  • Re: IIS 6.0 Server Rename
    ... It is perfectly fine to rename the computer that IIS6 is running on. ... it looks like an IIS problem since the scripts are now ...
    (microsoft.public.inetserver.iis)
  • Re: Cantt download "exe" file because of IIS version
    ... I have verified every setting in IIS6 until I am blue in the face and no ... that executables were NOT mapped to any application for the MIME type. ... > settings you make in IIS. ... >> is set to Scripts only and not Scripts and Executables? ...
    (microsoft.public.inetserver.iis)
  • download of file in subfolder does not work
    ... >Executables. ... Set it to scripts only. ... >>I just added 1 website to my IIS. ... >>This website is just a page with 4 links. ...
    (microsoft.public.inetserver.iis)
  • Re: Compiled C cgi tries to download .exe to my Browser
    ... Changed Execute permissions on the folder to "Scripts and ... >> you need to allow scripts and executables for CGI, ... >> Microsoft GTSC, IIS ...
    (microsoft.public.inetserver.iis)
  • Re: Installing IIS 5.0 on Windows 2003 Server?
    ... Why is there a buffering setting even available in IIS 6.0? ... We are aware of a performance issue with IIS6 and scripts that were not ... The following ASP will take a long time to complete, if ever, on IIS6. ...
    (microsoft.public.inetserver.iis)