Re: unlink() & rmdir() ... Problems.
| From: | Jason Wong | Date: | Tue, 24 Aug 2004 20:24:34 +0000 |
| Subject: | Re: unlink() & rmdir() ... Problems. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194633@lists.php.net to get a copy of this message | ||
On Wednesday 25 August 2004 02:30, John Nichel wrote:
> > 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...
>
> If Apache is running as nobody/nobody, it does not have permission to
> delete these directories. The only users who can delete these
> directories are the respective users, and root. You need to have write
> permission to delete...
>
> drwxr-xr-x 3 www www 102 24 Aug 11:09 rjohari
>
> In the above, the 'd' means directory, the next three letter are the
> user's permissions (full, read/write/execute), next three characters
> (r-x) are the group's permissions (read/execute), and the last three are
> other's (world) permission (read/execute). The two 'www' are the owner
> (user) and group. For the directory rjohari, only root and the user www
> can delete and/or write to this directory.
Actually 'nobody' *can* delete both bobkasper and rjohari (but not .DS_Store).
--
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
------------------------------------------
/*
Thrashing is just virtual crashing.
*/