Cannot execute cgi-bin scripts on Solaris

Cannot execute cgi-bin scripts on Solaris

Post by Kurt J. Lanz » Tue, 07 Oct 1997 04:00:00




> Hi all,

> I installed Apache 1.2.4 on a Solaris 2.5.1 machine.
> The cgi-bin/ is listed under the root. However, when I mouse-click on it,
> It says "Forbidden -- You don't have permission to access /cgi-bin/ on this
> server. At the meantime the error_log says:
> access to /usr/local/apache_1.2.4/cgi-bin failed for hostname,
> reason: attempt to invoke directory as script

> The srm.conf file contains:
> ScriptAlias /cgi-bin/ /usr/local/apache_1.2.4/cgi-bin/

> The access.conf contains:
> <Directory /usr/local/apache_1.2.4/cgi-bin>
> AllowOverride None
> Options FollowSymLinks ExecCGI

> The only time I made a script run under cgi-bin is to say:
> ScriptAlias /cgi-bin/ /usr/local/apache_1.2.4/cgi-bin/test.pl

> What did I miss in configuring the cgi-bin to hold all the executables?

It seems like a straightforward error message to me. It's not going to
let you execute a directory, only a script within that directory. What
part of that don't you understand?
--
Kurt J. Lanza

 
 
 

Cannot execute cgi-bin scripts on Solaris

Post by Marc Slemk » Tue, 07 Oct 1997 04:00:00


Erm... you are trying to access a directory, not a file in it.  The
directory isn't a script; you need to access a particular file in it.

If that still gives you permission denied, be sure the files and directories
are world readable and executable.


>Hi all,

>I installed Apache 1.2.4 on a Solaris 2.5.1 machine.
>The cgi-bin/ is listed under the root. However, when I mouse-click on it,
>It says "Forbidden -- You don't have permission to access /cgi-bin/ on this
>server. At the meantime the error_log says:
>access to /usr/local/apache_1.2.4/cgi-bin failed for hostname,
>reason: attempt to invoke directory as script
>The srm.conf file contains:
>ScriptAlias /cgi-bin/ /usr/local/apache_1.2.4/cgi-bin/
>The access.conf contains:
><Directory /usr/local/apache_1.2.4/cgi-bin>
>AllowOverride None
>Options FollowSymLinks ExecCGI
>The only time I made a script run under cgi-bin is to say:
>ScriptAlias /cgi-bin/ /usr/local/apache_1.2.4/cgi-bin/test.pl
>What did I miss in configuring the cgi-bin to hold all the executables?
>Thanks,
>Kerr



 
 
 

Cannot execute cgi-bin scripts on Solaris

Post by loe.. » Tue, 07 Oct 1997 04:00:00


Hi all,

I installed Apache 1.2.4 on a Solaris 2.5.1 machine.
The cgi-bin/ is listed under the root. However, when I mouse-click on it,
It says "Forbidden -- You don't have permission to access /cgi-bin/ on this
server. At the meantime the error_log says:
access to /usr/local/apache_1.2.4/cgi-bin failed for hostname,
reason: attempt to invoke directory as script

The srm.conf file contains:
ScriptAlias /cgi-bin/ /usr/local/apache_1.2.4/cgi-bin/

The access.conf contains:
<Directory /usr/local/apache_1.2.4/cgi-bin>
AllowOverride None
Options FollowSymLinks ExecCGI

The only time I made a script run under cgi-bin is to say:
ScriptAlias /cgi-bin/ /usr/local/apache_1.2.4/cgi-bin/test.pl

What did I miss in configuring the cgi-bin to hold all the executables?

Thanks,
Kerr

 
 
 

1. /cgi-bin/phf /cgi-bin/test-cgi /cgi-bin/handler

I've been seeing a number of attacks of this sort recently
from various sites in the http logs.  The time correlation
between the logs on various hosts suggests that the attacker
was scanning sequentially upward in IP addresses.  Since all
tcp and udp packets to ports below 1024 except for http,
smtp, and ident are filtered out for most, including the
attacking, sites, I'm not seeing anything else in the logs.

209.61.73.47 - - [04/Jul/1998:07:19:27 -0500] "GET /cgi-bin/phf" 404 -
209.61.73.47 - - [04/Jul/1998:07:19:28 -0500] "GET /cgi-bin/test-cgi" 404 -
209.61.73.47 - - [04/Jul/1998:07:19:28 -0500] "GET /cgi-bin/handler" 404 -

Is this a signature of some known attackware?  If so, what
other attacks accompany these http probes?

--

2. UPS on Solaris (SNMP)

3. Cannot execute CGI programs in /cgi-bin with Apache

4. TechnoInfosys - Total Linux Solution in Inda , Available

5. scohttp80 will not execute scripts in cgi-bin -Reply

6. LinuxPPC with MkLinux kernel?

7. executing /sbin/ifconfig from a /cgi-bin script

8. scohttp80 will not execute scripts in cgi-bin

9. Execute cgi outside of cgi-bin

10. cgi-bin/view-source?cgi-bin/view-source

11. Netscape Server :error send-cgi reports: cannot execute CGI script /disk6/www/ged/cgi-bin/division.info.pl (permission denied)

12. apache: give /home/mailman/cgi-bin permissions to run cgi-scripts.