Bug #10345 Updated: unlink ignores permissions

From: Date: Mon, 30 Apr 2001 06:10:48 +0000
Subject: Bug #10345 Updated: unlink ignores permissions
Groups: php.dev 
Request: Send a blank email to php-dev+get-53033@lists.php.net to get a copy of this message
ID: 10345 Updated by: andi Reported By: sascha@rizzt.2y.net 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@rizzt.2y.net 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

« previous php.dev (#53033) next »