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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
32 + 37 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 19 22:01:28 2024 UTC