Issue with asp executing files
Hello,I'm trying to run cacls.exe from within a standard ASP page, but when it executes, it always executes with the user privs of IWAM_servername, regardless of if I login with a user or have it set to anonymous access. Does the WWW service run as IWAM_servername by default, and this is why I'm having issues? Also, even if I give the IWAM_servername user full access to the folder it's trying to open, it still throws an access denied error (I'm using Filemon to monitor the access). By the way, here's the script:
Set oWSH=Server.CreateObject("WScript.Shell")
directory = "D:\webroottest\test.com"
username = "dustin1d"
strExec = "cacls " & directory & " /e /c /g " & username & ":C"
oWSH.Run strExec, 1, True
set oWSH = nothing
If I write out the response to the browser and paste it into a command line it executes properly. Any ideas on why it's using IWAM, and also why it's not abiding by the full permissions?
Thank you.