|
Posted by Ray on 10/30/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]
|