When I try to execute a .exe in my cgi-bin directory, I am told that I do
not have permission, even if I am logged on as the Administrator. I have
tried enabling all options such as execute permissions and write access, but
with no luck.

The file is a compiled C++ program, and is being called by a POST method in
my web page.

I am on a FAT32 partition, but the same happens on the NTFS partition.

Does anyone know what is wrong with my setup?

Graeme

Re: cgi-bin Permisions by Carroll

Carroll
Mon Oct 20 13:15:51 CDT 2003

It does not matter if you are logged in as the administrator. The folder
that has your CGI scripts in it must have the following permissions to work:
IUSR (Internet guest account); System must have at least the Modify
permissions to allow the script to run. I personally have not seen a CGI
script that would run unless it is connected via a HTTP connection, and if
you are, which you should be, using an HTTP connection you would be
connecting as an Internet User. Also don't forget to set your "Virtual
Directory" for your CGI bin so that all CGI's are ran from the same spot for
easier Administration. This is how I have my Windows 2000 IIS Webserver
configured and it seems to work just fine. Also you must have PERL
installed on your server.

--


Thank you for your time and have a great day,

Carroll P. MacDonald
Visit us on the web at: www.digitaldrive.ca



Re: cgi-bin Permisions by Paul

Paul
Mon Oct 20 14:14:38 CDT 2003

Carroll,

You also need to ensure that the virtual directory has Execute
permissions in IIS and that the IWAM_ account has appropriate
permissions to the folder if it is run out of process.

However, you only need Perl if you are running a Perl script.


Regards,

Paul Lynch
MCSE

Re: cgi-bin Permisions by Graeme

Graeme
Tue Oct 21 06:21:40 CDT 2003

Hi,
Thanks for the advice, I'm trying to run .exe files, not perl scripts, but
still no joy. How do I set the permissions for IWAM_ for the cgi-bin
directory?

Graeme


"Paul Lynch" <paul.lynch@nospam.com> wrote in message
news:lrc8pv44bm8b96ao8q5k4gsk21gvgd0tkd@4ax.com...
> Carroll,
>
> You also need to ensure that the virtual directory has Execute
> permissions in IIS and that the IWAM_ account has appropriate
> permissions to the folder if it is run out of process.
>
> However, you only need Perl if you are running a Perl script.
>
>
> Regards,
>
> Paul Lynch
> MCSE



Re: cgi-bin Permisions by Paul

Paul
Tue Oct 21 06:29:33 CDT 2003

Graeme,

Remember that permissions in IIS work on 2 levels - IIS and underlying
NTFS file permissions. To run an .exe file you need to give the
virtual directory execute permissions in IIS.

Then you also need to ensure that either the IUSR_ or the IWAM_ (or
both) accounts have sufficient privileges to the underlying physical
folder.

However, NEVER allow non-trusted accounts WRITE permission to a
directory which also has EXECUTE permission - I'm sure you can figure
out why ;-)

Have a look at these KB articles for a more detailed explanation of
these issues :

HOW TO: Configure Web Server Permissions for Web Content in IIS
http://support.microsoft.com/?id=313075

HOW TO: Use NTFS Security to Protect a Web Page Running on IIS 4.0 or
5.0
http://support.microsoft.com/?id=299970


Regards,

Paul Lynch
MCSE