H
hakim
Hello,
I am running a webserver. I offer PHP in safe_mode, that means:
When safe_mode is on, PHP checks to see if the owner of the current
script matches the owner of the file to be operated on by a file
function or its directory. For example:
-rw-rw-r-- 1 rasmus rasmus 33 Jul 1 19:20 script.php
-rw-r--r-- 1 root root 1116 May 26 18:01 /etc/passwd
Running this script.php
<?php
readfile('/etc/passwd');
?>
results in this error when safe mode is enabled:
Warning: SAFE MODE Restriction in effect. The script whose uid is 500
is not
allowed to access /etc/passwd owned by uid 0 in /docroot/script.php on
line 2
Is there a similar way to configure perl or mod_perl. I would like to
offer Perl to my customers to run their own CGI-Scripts, if they want.
I don't want them to read files others then their own homedirectory.
Thanks a lot...
Achim
I am running a webserver. I offer PHP in safe_mode, that means:
When safe_mode is on, PHP checks to see if the owner of the current
script matches the owner of the file to be operated on by a file
function or its directory. For example:
-rw-rw-r-- 1 rasmus rasmus 33 Jul 1 19:20 script.php
-rw-r--r-- 1 root root 1116 May 26 18:01 /etc/passwd
Running this script.php
<?php
readfile('/etc/passwd');
?>
results in this error when safe mode is enabled:
Warning: SAFE MODE Restriction in effect. The script whose uid is 500
is not
allowed to access /etc/passwd owned by uid 0 in /docroot/script.php on
line 2
Is there a similar way to configure perl or mod_perl. I would like to
offer Perl to my customers to run their own CGI-Scripts, if they want.
I don't want them to read files others then their own homedirectory.
Thanks a lot...
Achim