Re: unlink() & rmdir() ... Problems.
| From: | Jonathan Haddad | Date: | Mon, 23 Aug 2004 17:41:25 +0000 |
| Subject: | Re: unlink() & rmdir() ... Problems. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194500@lists.php.net to get a copy of this message | ||
the chmod 666 sets the exisiting files to be edited by the server. anything that's uploaded by the server is owned by it, and thusly can be edited.
as a side note, you'd have to chmod 777 the directory to be edited if you want uploads to work.
PHP Junkie wrote:
Ave, Well here's my situation... You see the File Manager allows users to Upload files ... Once a user uploads the file... It resides in a particular folder on my server. Users will be constantly uploading, downloading, deleting files. I can't possibly CHMOD 777 all the time... My question is... If I select the "nobody" group for the base folder where the files are stored & created... Will all the directories & files which are created later by the users using the website therein have the permissions to be deleted, if I set the permissions to read & write on that base folder? Thanks. On 8/23/04 12:48 PM, "Jay Blanchard" <jay.blanchard@niicommunications.com> wrote:[snip] How do I find out which user/group my web server is running as? I'm running an Apache Web Server on my Power MAC G5 (Mac OS X) machine. I can change the user/group permissions... But which user/group does the web server use? [/snip] For security reasons Apache typically runs as "nobody"