From:             neppis at msn dot com
Operating system: Solaris 8 - Sparc
PHP version:      5.0.1
PHP Bug Type:     Filesystem function related
Bug description:  fileaccess dont work properly

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.




-- 
Edit bug report at http://bugs.php.net/?id=29963&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29963&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29963&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29963&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=29963&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=29963&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=29963&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=29963&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=29963&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=29963&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=29963&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=29963&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=29963&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=29963&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29963&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=29963&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=29963&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=29963&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29963&r=float

Reply via email to