I am getting the dreaded "Permission Denied" error from my classic ASP page, when trying to run an exe file using the shell run command.
Here's the senerio:
This Works:
Network user FRED on his desktop opens browser and goes to website on ServerA. ServerA runs a WScript.Shell run command on an Exe that does some stuff.
This Does NOT work:
(Same as above except, the website starts on a different server.)
Network user FRED on his desktop opens browser and goes to website on ServerB. ServerB then does a response.redirect to a page on ServerA and that page runs same WScript.Shell run command on an Exe that does some stuff.
However, this DOES work:
(Same as above except different network user. JOE is an admin on ServerA.)
Network user JOE on his desktop opens browser and goes to website on ServerB. ServerB then does a response.redirect to a page on ServerA and that page runs same WScript.Shell run command on an Exe that does some stuff.
In all cases, same exe, same website runs the exe, just that the web browser started from another server and it behaves differently depending on the user logged in using the browser.
Here is what I have already tried:
1) Set IWAN_machine and IUSR_machine to have full everything access to exe and dirs.
2) Set IWAN_machine and IUSR_machine as Admins on the server
3) The exe to run and folder has everyone in the world access.
4) Changed ServerA IIS default application pool to use "LOCAL SERVICE" instead of "NETWORK SERVICE" (this allowed the third senerio to work, ie JOE user it works)
I'm at my wits end and could use any insight in how to get this to work!
Thanks in advance!
---JHG
Start Free Trial