Forum Moderators: open
I have a webserver running on iis 5 it is also using active perl 5.8. The web server is using perl to call exe files via the system call in perl. The users are authenticated by windows auth method to give them access to directories in the ntfs file system. The exe files are located outside the root of the web server, and to try and fool iis i have used a batch file in the webroot to call the exe files. The exe files are in directories which have been given access to in the permissions tab of the folder proprties. Now if i run the web cgi it will create anything in the webroot until it tries to call the exe files below the webroot and i get access denied unless i put the user in the administrators group and all is well. What the hell is going on? This has had me stummped for days. Suppose another way of asking the question is how do you run exe files out side the webroot as a user and not the Administrator.
Does any one have any pointers? PLEASE.
I tried to put my .exe file into cgi-bin directory under wwwroot. But, it did not help. The latest error I got is Error Type 0x80070002, and it shows the error on the line 57 which is the line where I set the path to my .exe file. The .exe is already in the right path.
here how I call my .exe file:
[codes]
UserRegKey = RegKey
Set ToRun_Prog_SCmd = Server.CreateObject("WScript.Shell")
ExecRunCmd = ToRun_Prog_SCmd.Run ("C:\Inetpub\wwwroot\cgi-bin\KEYGEN.EXE /CC /R"&UserRegKey&" /T1212;", 4, True)
Set ToRun_Prog_SCmd = Nothing
[codes]
My admin already set permission for Everyone to: Read, Execute, and Write for all related folders.
Can anyone show me a way to solve this problem? Any help is appreciated. Thanks in advanced.