Re: PHP safe_mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, April 26, 2005 6:48 am, kioto said:
> Hi all i have problem with safe_mode i don't understand the logic to
> apply to avoid owners
> problem with script.
> Can you step by step ho to solve ?

http://php.net/features.safe-mode

may have your answer.

Be sure to read the User Contributed notes.

The basic premise of "safe mode" is that your PHP script should only open
up files that are owned by the same OS UserID as the owner of the script.

EG:

ls -als
... kioto my_script.php
... kioto my_data.txt
... root secret_data.txt

Your script can open up my_data.txt, because you own both files.

But you can't open up secret_data.txt, because it is *NOT* owned by the
owner of the my_script.php

You can relax things a bit and make "safe mode" apply to GroupIDs instead
of OwnerIDs, if that helps you in your situation.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux