Re: unlink() & rmdir() ... Problems.
| From: | Jason Wong | Date: | Mon, 23 Aug 2004 19:44:39 +0000 |
| Subject: | Re: unlink() & rmdir() ... Problems. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194520@lists.php.net to get a copy of this message | ||
On Tuesday 24 August 2004 01:55, PHP Junkie wrote:
> 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.
In order for a user to delete a file they must have:
1) 'x' permission for all directories in the path
2) 'wx' permission for the directory containing the file
NB the permissions on the files themselves are irrelevant.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The meta-Turing test counts a thing as intelligent if it seeks to
devise and apply Turing tests to objects of its own creation.
-- Lew Mammel, Jr.
*/