Re: [PHP] Question about directory permissions

2011-03-21 Thread Curtis Maurand
Al wrote: > I understand dir perms pretty well; but, have a question I can't readily > find > the answer to. > > Under a Linux system, scripts can't write, copy, etc. to other dirs unless > the > perms are set for writable for the script e.g., nobody. > > But, is there a way a script can write

Re: [PHP] Question about directory permissions

2011-03-21 Thread Andy McKenzie
Sure. The script runs with the permissions of whoever is running it. In general, a PHP script that's a web page in linux will run by a user called something like apache, apache2, www-user, or something similar. If you give that user permissions -- either directly or through their group, often of

[PHP] Question about directory permissions

2011-03-21 Thread Al
I understand dir perms pretty well; but, have a question I can't readily find the answer to. Under a Linux system, scripts can't write, copy, etc. to other dirs unless the perms are set for writable for the script e.g., nobody. But, is there a way a script can write or copy within its own dir