#19648 [Bgs]: fopen() and current user
ID: 19648
Updated by: hholzgra@php.net
Reported By: raz0@worldonline.dk
Status: Bogus
Bug Type: Feature/Change Request
Operating System: GNU/Linux or any Unix variant
PHP Version: 4.2.2
New Comment:
this is just how the unix security model works,
only owner and root can chmod files
Previous Comments:
------------------------------------------------------------------------
[2002-09-28 09:08:27] raz0@worldonline.dk
I know its not a bug, thats why I put it under:
Feature/Change Request :)
Well, if you can't answer the question, can you tell me
where I can get an answer then? :)
------------------------------------------------------------------------
[2002-09-28 09:04:19] sander@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
------------------------------------------------------------------------
[2002-09-28 08:56:56] raz0@worldonline.dk
fopen() uses the user running PHP to open the selected file.
This causes problems when you e.g. make a filemanager. All
files created with the filemanger will be owned by the www user and
chmod'ed to 644. On the other side, the filemanger
cannot alter files as they are (mostly) owned by the user (e.g. raz0).
This makes it quite hard to make useful filemanger. Other commands like
unlink() and rmdir() don't
bother whether the files are owned by one or another user.
Is there someway you can fix this?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19648&edit=1
Thread (4 messages)