Re: unlink() & rmdir() ... Problems.
| From: | John Nichel | Date: | Tue, 24 Aug 2004 21:31:57 +0000 |
| Subject: | Re: unlink() & rmdir() ... Problems. | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194639@lists.php.net to get a copy of this message | ||
Jason Wong wrote:
<snip>
How so? Even if 'nobody' is in the www group, it still wouldn't have the proper permissions. [root@jnichel /]# ls -al bob.txt -rw-r--r-- 1 apache apache 6 Aug 24 17:27 bob.txt [root@jnichel /]# su - nobody -bash-2.05b$ rm -f /bob.txt rm: cannot remove `/bob.txt': Permission denied -bash-2.05b$ -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.comIf 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...Actually 'nobody' *can* delete both bobkasper and rjohari (but not .DS_Store).drwxr-xr-x 3 www www 102 24 Aug 11:09 rjohariIn 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.