Q: user's own cgi-bin directory?

Q: user's own cgi-bin directory?

Post by resear » Sat, 17 Jul 1999 04:00:00



Hello!

I'm running apache server and
wonder how I can enable cgi-bin directory for each user.
Specifically, I want every (secure) users can have
their own cgi-bin directory under ~user/public_html/cgi-bin
and have run their own script.
Most of the scripts are in (c)sh, c and perl.

Thank you.

James.

 
 
 

Q: user's own cgi-bin directory?

Post by Vladimir Menk » Sun, 18 Jul 1999 04:00:00




>I'm running apache server and
>wonder how I can enable cgi-bin directory for each user.
>Specifically, I want every (secure) users can have
>their own cgi-bin directory under ~user/public_html/cgi-bin
>and have run their own script.

I have not tried this myself, but perhaps ScriptAliasMatch may be used?
(See the docs at http://www.apache.org/docs/mod/mod_alias.html#scriptalias)

I would try something like this:

  ScriptAliasMatch ^/~([a-z]+)/cgi-bin/(.*) /home/$1/cgi-bin/$2

(This example assumes that ~username is /home/username)

        --vladimir

 
 
 

Q: user's own cgi-bin directory?

Post by ropla.. » Mon, 19 Jul 1999 04:00:00




Quote:

> Hello!

> I'm running apache server and
> wonder how I can enable cgi-bin directory for each user.
> Specifically, I want every (secure) users can have
> their own cgi-bin directory under ~user/public_html/cgi-bin
> and have run their own script.
> Most of the scripts are in (c)sh, c and perl.

> Thank you.

> James.

This can be done in  at least one manner, this is painful to some
though I could not get ScriptAliasMatch to function. With more users,
the economy might be different...

ScriptAlias /home/username/public_html/cgi-bin/ ~username/cgi-bin
...

for each user. Apache documentation could be more clear on this
subtilty.

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

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. Window Managervrode

3. User's own cgi-bin

4. C Includes

5. cgi-bin's in user directories

6. A simple Pentium gcc question

7. Can't get CGI to run in local cgi-bin directory

8. SLIP: ip forwarding past slipserver to the world

9. Aliasing cgi-bin directory to CGI directory

10. Creating user cgi-bin directories

11. Protection of CGI-BIN & user directory

12. Enabling cgi-bin directories for each user in Apache

13. CGI-BIN Directory for users?