ID: 18500
Updated by: php-bugs@lists.php.net
Reported By: b.courtin@t-online.net
-Status: Feedback
+Status: No Feedback
Bug Type: PHP options/info functions
Operating System: Solaris 2.8
PHP Version: 4.2.1
New Comment:
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2002-09-29 22:29:05] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
If you still experience this problem, please include the info about the
Web Server you are using in your reply.
------------------------------------------------------------------------
[2002-07-23 12:31:41] b.courtin@t-online.net
Hi,
when using SAFE_MODE = ON, php reports a wrong uid on a file to be
served.
It reports file has uid=1 althought it should report (and therefore
serve the page) uid=2003.
Details: I will get the following error:
--------
[23-Jul-2002 17:47:06] PHP Warning: SAFE MODE Restriction in effect.
The script whose uid/gid is 1/2003 is not allowed to access
/a/b/c/d/e/partner_sets.inc owned by uid/gid 2003/1082 in
/w/x/y/z/login_tol.html on line 13
[23-Jul-2002 17:47:06] PHP Fatal error: Failed opening required
'/a/b/c/d/e/partner_sets.inc' (include_path='.:/opt/php-4.2.1/lib/php')
in /w/x/y/z/login_tol.html on line 13
---------
Where "/a/b/c/d/e/partner_sets.inc" is included from
"/w/x/y/z/login_tol.html" which is part of a frame of
"/w/x/y/index.html". (<frame src="/z/login_tol.html"...>)
It seems that the uid which is reported is wrong (1) and the gid wich
is reported (2003) is the uid which should be reported (see below).
File ownership/permissions are as follows:
--------------------------------------------
ls -la /w/x/y/index.html
-rw-r----- 1 webadmin httpd 3106 Nov 2 2001
/w/x/y/index.html
ls -la /w/x/y/z/login_tol.html
-rw-r----- 1 webadmin httpd 15343 Apr 15 10:56
/w/x/y/z/login_tol.html
ls -la /a/b/c/d/e/partner_sets.inc
-rwxr----- 1 webadmin httpd 897 Feb 26 20:20
/a/b/c/d/e/partner_sets.inc
User / group IDs are:
-----------------------
# id httpd
uid=2002(httpd) gid=1082(httpd)
# id webadmin
uid=2003(webadmin) gid=1082(httpd)
The apache server is running as uid/group httpd/httpd.
Kind regards,
Bert Courtin
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18500&edit=1