|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
IIS 5.0 vs IIS 6.0Greetings,
I have an asp page that allows me to start and stop services on my windows 2000 server and run some batch files as well. Now that we are upgrading to windows 2003 this page is not working. I have changed the security parameters on IIS 6.0 but still I cant run my batch (I am using .bat ) files. What else should I do in order to make an asp page to run batch files (that among other things start or stop services) on windows 2003?. Thanks!.
http://blogs.msdn.com/david.wang/archive/2006/04/28/HOWTO_Run_Console_Applications_from_IIS6_on_Windows_Server_2003_Part_2.aspx
Depending on your security requirements, it may no longer work. -- Show quoteHide quote//David IIS http://blogs.msdn.com/David.Wang This posting is provided "AS IS" with no warranties, and confers no rights. // "Antero" <Ant***@discussions.microsoft.com> wrote in message news:BACCB6C7-7444-4F66-91B7-492419F41269@microsoft.com... > Greetings, > > I have an asp page that allows me to start and stop services on my windows > 2000 server and run some batch files as well. Now that we are upgrading to > windows 2003 this page is not working. I have changed the security > parameters > on IIS 6.0 but still I cant run my batch (I am using .bat ) files. What > else > should I do in order to make an asp page to run batch files (that among > other > things start or stop services) on windows 2003?. > > Thanks!. Thanks David for your answer.
I am not a very technicall person, I tried to understand what the article said but I coulndnt reproduce it on my IIS, I cannot find a cgi-bin folder on my server and I dont know how to map asp.dll as a script engine. Can you explain it to me in more detail or maybe there is another way to run batch files remotely and if you know how, please let me know. Thanks again!. Show quoteHide quote "David Wang [Msft]" wrote: > http://blogs.msdn.com/david.wang/archive/2006/04/28/HOWTO_Run_Console_Applications_from_IIS6_on_Windows_Server_2003_Part_2.aspx > > Depending on your security requirements, it may no longer work. > > -- > //David > IIS > http://blogs.msdn.com/David.Wang > This posting is provided "AS IS" with no warranties, and confers no rights. > // > > "Antero" <Ant***@discussions.microsoft.com> wrote in message > news:BACCB6C7-7444-4F66-91B7-492419F41269@microsoft.com... > > Greetings, > > > > I have an asp page that allows me to start and stop services on my windows > > 2000 server and run some batch files as well. Now that we are upgrading to > > windows 2003 this page is not working. I have changed the security > > parameters > > on IIS 6.0 but still I cant run my batch (I am using .bat ) files. What > > else > > should I do in order to make an asp page to run batch files (that among > > other > > things start or stop services) on windows 2003?. > > > > Thanks!. > > > It is actually all configured already, so you do not need to worry about it.
My blog entries simply describe the technical details behind the configuration so that if you want, you can create your own configuration based on that information. But it's not necessary for your common case, and I rely on you to correctly interpret and use the information. In short, the blog entry describes why your current configuration does not work as well as one way to make it work - you have to evaluate whether it fits your security and functional requirements. The core issue is that your code in ASP is likely using Win32 CreateProcess() to launch the .bat batch files. Security changes in CMD.EXE parsing of .bat files affect execution of .bat batch files from CreateProcess(). Your choices are to either: 1. Run Application Pool with LocalSystem identity (security vulnerability) 2. Run Application with same Identity as the user identity executing the ASP page, which depends on authentication -- Show quoteHide quote//David IIS http://blogs.msdn.com/David.Wang This posting is provided "AS IS" with no warranties, and confers no rights. // "Antero" <Ant***@discussions.microsoft.com> wrote in message news:F60BA84F-06F3-484E-A43D-AF6C8A34B86D@microsoft.com... > Thanks David for your answer. > > I am not a very technicall person, I tried to understand what the article > said but I coulndnt reproduce it on my IIS, I cannot find a cgi-bin folder > on > my server and I dont know how to map asp.dll as a script engine. Can you > explain it to me in more detail or maybe there is another way to run batch > files remotely and if you know how, please let me know. > > Thanks again!. > > "David Wang [Msft]" wrote: > >> http://blogs.msdn.com/david.wang/archive/2006/04/28/HOWTO_Run_Console_Applications_from_IIS6_on_Windows_Server_2003_Part_2.aspx >> >> Depending on your security requirements, it may no longer work. >> >> -- >> //David >> IIS >> http://blogs.msdn.com/David.Wang >> This posting is provided "AS IS" with no warranties, and confers no >> rights. >> // >> >> "Antero" <Ant***@discussions.microsoft.com> wrote in message >> news:BACCB6C7-7444-4F66-91B7-492419F41269@microsoft.com... >> > Greetings, >> > >> > I have an asp page that allows me to start and stop services on my >> > windows >> > 2000 server and run some batch files as well. Now that we are upgrading >> > to >> > windows 2003 this page is not working. I have changed the security >> > parameters >> > on IIS 6.0 but still I cant run my batch (I am using .bat ) files. What >> > else >> > should I do in order to make an asp page to run batch files (that among >> > other >> > things start or stop services) on windows 2003?. >> > >> > Thanks!. >> >> >>
IIS + SQL (Not enough storage is available to complete this operation)
Microsoft URL Scan HTTP 405: The HTTP verb used to access this page is not allowed Pass though authenticateion Urlscan 2.5 question Problem with Anonymous Access Integrated Windows Authentication results in -2146893052 (0x80090304) IIS default file permissions used improperly? ++ IIS + SQL (Not enough storage is available to complete this operation) SSL warning message for Intranet site |
|||||||||||||||||||||||