in reply to Re: CGI/Remote Commands on Web Servers
in thread CGI/Remote Commands on Web Servers

Thanks for the replies. Unfortunately, I'm still getting problems. I've followed your advice wazoox and there is an IIS user account on the web server which I've given read/execute permissions for the executables I want to run (specifically now, psexec.exe). Its still not running it though - its as if it runs half of psexec and then hangs. I'll confess to being a complete novice when it comes to IIS - anyone know of anything online that I can read up about it?
  • Comment on Re^2: CGI/Remote Commands on Web Servers

Replies are listed 'Best First'.
Re^3: CGI/Remote Commands on Web Servers
by wazoox (Prior) on May 02, 2008 at 15:22 UTC
    Show Us The Fine Code, dude. My crystal balls has ran out of batteries, and it gets old quickly to play this guessing game. Maybe it works but doesn't display output because you forgot http headers, perhaps it gives some information in the IIS logs, etc. Show the code you wrote, and look at the webserver logs.
Re^3: CGI/Remote Commands on Web Servers
by NetWallah (Canon) on May 02, 2008 at 19:41 UTC
    psexec ? - Isn't that the program that lets you run code on a remote machine ?

    The IUSER_<computername> account is a LOCAL account, that, by default/design allows execution only on the local machine.

    If you need something exotic, try using the runas command to impersonate another identity and execute something. But (warning) this may be a security hazard, because you need to supply the password via STDIN.

         "How many times do I have to tell you again and again .. not to be repetitive?"