Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Advocacy
ModPerl Questions
 

Index | Next | Previous | View Flat


cbaltaci at turkisp

Dec 23, 2005, 5:06 AM


Views: 4157
Permalink
ModPerl Questions

Hi,

My Webserver is Apache/2.0.40 with Perl 5.8.0 and mod_perl-1.99_07-5 on a
RH9 box.

A simple perl script can see everything on the server. The sys user of
domain.com is xxx and home directory of this user is
/home/httpd/domain.com/htdocs. I want to make a setting, that the xxx user
can do something only in the homedirectory.

Is there a soluion?

--- dumy.pl ---
#!/usr/bin/perl

print "Content-type:text/html\n\n";

foreach my $var (sort keys %ENV) {
print $var . "=" . $ENV{$var} . "<br>\n";
}

@x = `cat /etc/passwd`;
print "<pre>";
print "@x";
print "</pre>";



--- in conf file ---

<Directory /home/httpd/domain.com/htdocs>
<IfModule mod_perl.c>
<Files ~ (\.pl)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Files>
</IfModule>



Best Regards
Cihangir


---------------------------------------------------------------------
To unsubscribe, e-mail: advocacy-unsubscribe[at]perl.apache.org
For additional commands, e-mail: advocacy-help[at]perl.apache.org

Subject User Time
ModPerl Questions cbaltaci at turkisp Dec 23, 2005, 5:06 AM
    Re: ModPerl Questions frank at wiles Dec 23, 2005, 9:40 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.