IIS - Error 403.19 with IIS 6 and CGI file

Asked By philalber
12-Feb-07 12:39 PM
Hi,

I'm trying to run a .cgi file on my web site, but i'm getting the
error 403.19 in the log file.
I think the user running the app pool might not have all the necessary
rights or something but i can't find which one it should have.
Anyone that can help me out?

Thanks
Phil
IIS
(1)
CGI
(1)
CreateProcessAsUser
(1)
PSS
(1)
PhilThe
(1)
ACGI
(1)
Identity
(1)
David
(1)
  David Wang replied...
16-Feb-07 06:19 PM
The two required user privileges for a custom user identity to run a
CGI are listed in IIS documentation online, under the section on
configuring Application Pool Identity.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
  philalber replied...
19-Feb-07 12:39 PM
My problem is fixed. I called Microsoft support this morning and
here's what they done.
They had me run this command: Cscript adsutil.vbs set W3Svc/
CreateProcessAsUser false
If i understand it right, this will make the cgi script use the user
currently logged.

Thanks for your blog link David, it's very interesting.
  David Wang replied...
19-Feb-07 02:28 PM
The command the that PSS had you run makes all CGI on IIS run as the
Application Pool's process identity instead of the Impersonated
identity through authentication. It removes the need to add those two
permissions onto the Application Pool identity by making all CGIs run
with different permissions.

So yes, it works, but is it what you want to do? Or do you not know/
care, just as long as the CGI runs?


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
  philalber replied...
19-Feb-07 02:53 PM
Well if i can run those CGI it's good, but if it's not the best way to
make it happen i would like to know how to do it.
If i understand you correctly, there's 2 permissions i need to give my
application identity to make it work?
Sorry but i'm new to all of this...

Thanks
Phil
  David Wang replied...
19-Feb-07 06:04 PM
Actually, I'm saying that there are multiple ways to accomplish the
task of "make CGI run on IIS6" with different consequences, and I am
asking you what you want to accomplish.

The difference between them is this -- in one instance, the CGI always
runs with the Application Pool's identity. In the other, the CGI
always runs with the identity obtained through authentication.

So, one way to choose between them is if you need to know the
authenticated user or behave differently for different users. There
can be other reasons; once again, you need to understand and come up
with the requirement.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
  philalber replied...
20-Feb-07 09:52 AM
I think the way it is wet right now if fine. Am i correct to say that
it is now, after changing the CreateProcessAsUser to false,   running
all CGI with the application pool's identidy?

Thanks
help
CGI C# Executables on IIS6 IIS Hi I have read reams of info regarding the ability to use C# for CGI, and tried loads of approaches. I am getting a mixed message. Microsoft documentation indicates that references to .exe cgi files won't work. That seems to be verified through numerous attempts. But there is I have found references that say that if I create an intermediate file such as CGI.CSX, and add that Service Extension, it should work. So far it doesn't. I and go back to Perl? Or is there a way? Thanks in Advance Don Bretz IIS Discussions Internet Explorer 7 (1) Perl (1) IIS (1) XP (1) WebSvcRestrictionList (1) CreateProcessAsUser (1) Console.Write (1) CGIs (1) Don wrote on Tue, 8 Apr 2008 06:53
Application Pool IIS Hi all, I, m trying to run a CGI server through Win2003 Server IIS but within the application pool if I don't use the LOCAL SYSTEM in the respond as I need to get this application up as soon as. Thanks in advance. IIS Discussions IIS (1) CGI (1) LocalSystem (1) LOCAL (1) SYSTEM (1) ImpersonatedIdentity (1) MSFT (1) ProcessIdentity (1) Are you saying that your CGI requires LocalSystem to function, or that you are unable to run CGI with a custom user identity. It all depends on what you want to do and
IIS 7.0 problems IIS I have installed windows longhorn, I'm trying to install IIS, and I'm getting lots of errors in the installation of the http and security, the only portion that is installed is the FTP. I tried to uninstall IIS and install it back again, never succeeded. I have Directory services, DNS, and I'm trying to install IIS on the server. any ideas ? Thank you so much. IIS Discussions IIS (1) ASP.NET (1) Windows Server (1) ClientCertificateMappingAuthentication (1) IISCertificateMappingAuthentication (1) WebServerManagementTools (1) ManagementScriptingTools (1 build of longhorn are you using? Try installing IIS7 from a command line.http: / / www.iis.net / default.aspx?tabid = 2⊂tabid25&i = 958 - - Steve Schofield Windows Server MVP - IIS ASPInsider
IIS is not physically creating virtual directory but create in IIS IIS Hi, IIS is not Physically Creating Virtual Directory but create in IIS and map to source folder When I am creating in IIS, I am administrator in my system. What may be possible cause of this. I am using IIS 5.1 and Operating System is Win XP Service Pack 2. Regards, Vivek IIS Discussions Visual Studio (1) IIS (1) XP (1) Vivek (1) Directories (1) Directory (1) Creatign