Re: unlink() & rmdir() ... Problems.
| From: | PHP Junkie | Date: | Mon, 23 Aug 2004 17:55:20 +0000 |
| Subject: | Re: unlink() & rmdir() ... Problems. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194501@lists.php.net to get a copy of this message | ||
Ave,
I do have the original permission set to CHMOD 777 thus the uploads are
working fine.
I had presumed that anything uploaded by the server is owned by it thus I
wouldn't have to interfere with the permissions thereafter... But somehow
that doesn't seem to be working out.
I did actually set the permissions for group "nobody" to 'Read & Write'...
But I'm still there. The Files or Folders are not getting deleted.
Ave.
On 8/23/04 1:41 PM, "Jonathan Haddad" <jon@oldirtyhaddad.com> wrote:
> 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"
>>>
>>>
>>>
>>>
>>
>>
>>