Jason Wong wrote:
<snip>

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).


How so? Even if 'nobody' is in the www group, it still wouldn't have the proper permissions.


[EMAIL PROTECTED] /]# ls -al bob.txt
-rw-r--r--  1 apache apache 6 Aug 24 17:27 bob.txt
[EMAIL PROTECTED] /]# 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
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to