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@perl.apache.org
For additional commands, e-mail: advocacy-help@perl.apache.org
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@perl.apache.org
For additional commands, e-mail: advocacy-help@perl.apache.org