[PHP-DEV] Bug #10345 Updated: unlink ignores permissions From: andi <email protected>
Date: 04/30/01

ID: 10345
Updated by: andi
Reported By: sascha <email protected>
Old-Status: Open
Status: Closed
Bug Type: Filesystem function related
PHP Version: 4.0.1pl2
Assigned To:
Comments:

This is not a bug but how the filesystem works. Permissions for erasing a file is according to the permissions on the directory and not the file.

Previous Comments:
---------------------------------------------------------------------------

[2001-04-16 11:15:33] sascha <email protected>
unlink seems to run as root.
i have set file permissions to 444 (owner root) and tried to open this file for writing from a script. php said 'permission denied'. then i tried to unlink this file with success.

mod_php-4.0.1pl2-9
apache-1.3.12-25

---------------------------------------------------------------------------

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10345&edit=2

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>