php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29963 fileaccess dont work properly
Submitted: 2004-09-03 06:51 UTC Modified: 2004-09-03 08:26 UTC
From: neppis at msn dot com Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.0.1 OS: Solaris 8 - Sparc
Private report: No CVE-ID: None
 [2004-09-03 06:51 UTC] neppis at msn dot com
Description:
------------
root user start php script.
i set posix_setgid -> www
and posix_setuid -> wwwuser
both work fine, if i touch file, it will be: wwwuser:www

however, i have user ftp:ftp created
wwwuser is part of ftp-group.

file:
-rw-rw-r--   1 ftp      ftp           15 Sep  2 16:25 /home/ftp/testing/testfile

with vi i can edit or i can do anything to that testfile as wwwuser, but with php i cannot modify it, if i have used posix_setuid to wwwuser.
forexample is_writeable function returns false.




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-03 08:26 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 18:01:30 2024 UTC