Re: unlink() & rmdir() ... Problems.
| From: | PHP Junkie | Date: | Tue, 24 Aug 2004 18:20:40 +0000 |
| Subject: | Re: unlink() & rmdir() ... Problems. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194616@lists.php.net to get a copy of this message | ||
Ave,
Apache to the best of my knowledge runs as "nobody" by default and since I
didn't change any settings, it is probably running as "nobody".
This is what I got with ls -al
rahul:/Library/WebServer/Documents/informed-sources.com/imsafm bob$ ls -al
total 16
drwxrwxrwx 5 nobody nobody 170 24 Aug 13:55 .
drwxrwxrwx 102 bob unknown 3468 24 Aug 11:23 ..
-rw-rw-rw- 1 bob unknown 6148 24 Aug 13:57 .DS_Store
drwxr-xr-x 3 www www 102 24 Aug 11:05 bobkasper
drwxr-xr-x 3 www www 102 24 Aug 11:09 rjohari
Now you see the last 2 folders... "bobkasper" and "rjohari". These are 2
users created by the admin. If I delete a user, their corresponding folder
should be deleted as well, which is what I am trying to achieve. But if,
let's say, I delete the user "rjohari"... The folder still remains.
Thanks for helping...
On 8/24/04 1:49 PM, "John Nichel" <john@kegworks.com> wrote:
> PHP Junkie wrote:
>> Ave,
>>
>> Nope... Didn't work. Didn't return an error or anything, didn't delete the
>> folders either!
>
> If you cannot delete via the php functions or via system calls, then you
> have a permission problem.
>
> What user/group is Apache running as?
>
> What is the output of 'ls -al' for the files you're looking to delete?