You are here: Re: multi-user php setup problem « PHP Programming Language « IT news, forums, messages
Re: multi-user php setup problem

Posted by Czapi on 02/08/07 09:43

cmk128@hotmail.com wrote:
> My problem is : if user A is uploaded a php file, user A can use php
> to read user B directory. How can i isolate them?
> That mean if there is php file in /phpspace/usera/index.php, how can i
> make it can read the directory phpspace/usera only?

Simply use umask or force files to have specific access rights:

user not in group www,
web server user in group www,
files group: www,
files mode: rw-r----- (640).

Simple - user won't be able to read...

And for a more secure option man chroot (use apaches virtualhost directive).

Safe mode might help as well.

--
Cz.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация