You are here: Re: Flat file security « PHP Programming Language « IT news, forums, messages
Re: Flat file security

Posted by Ray on 10/10/46 11:28

Hi Peter,

Peter van Schie wrote:
> Ray wrote:
> > But, say I could make files owned by www-data and give it -rwx------.
> > How could I read them?
>
> You mean how to read the file from PHP? Just use fopen, fread and
> fclose. Or even easier: file_get_contents.

Ummm, no I don't mean that. I mean if the files are owned by one user
(www-data) how can another user (me in this case: ray) read them?
Wouldn't I'd get into a situation where I have files owned by someone
else sitting in my directory which I cannot read, write, or delete?
Ok...not true...I suppose I could extend what Erwin suggested and
create a php script that does these things which would then be executed
by www-data. But, from the Unix prompt, I can't do anything to them?

Something is wrong with my understanding, right?

Ray

 

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

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