Forum Moderators: open

Message Too Old, No Replies

IIS exe problem

IIS exe problem

         

blackadder

12:39 pm on Nov 16, 2003 (gmt 0)

10+ Year Member



Ok this is a long one and i hope someone can help me please.

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.

jatar_k

5:47 pm on Nov 20, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld blackadder,

I moved this over to the Microsoft forum and we'll see if someone might know the answer to your problem.

bignet

12:49 am on Dec 2, 2003 (gmt 0)

10+ Year Member



I would suggest you create a virtual directroy (write-click your the website...) in iis and point it to the direcotry containing the executables,
then set up permissions
use absolute or relatvie urls, not batch files

bignet

8:34 pm on Dec 15, 2003 (gmt 0)

10+ Year Member



Does any one have any pointers? PLEASE.

Please confirm problem resolved

others may have same problem and ...

kang_cyb3r

5:17 pm on Dec 17, 2003 (gmt 0)



I have a quite similar problem. In my case, after I made some permission changes, I have been able to run .exe file using PWS without problem. The problem occurred when I moved the page to IIS 5 on Windows 2000 Server, it looks like it does not call the .exe file. One time it just keeps on loading the page where it should display the result from .exe file.

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.