Bug #72357 [Opn->Asn]: Pool logs created with master owner:group
| From: | bukka@php.net | Date: | Mon, 10 Apr 2017 19:06:21 +0000 |
| Subject: | Bug #72357 [Opn->Asn]: Pool logs created with master owner:group | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-208455@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72357&edit=1
ID: 72357
Updated by: bukka@php.net
Reported by: anrdaemon at yandex dot ru
Summary: Pool logs created with master owner:group
-Status: Open
+Status: Assigned
Type: Bug
Package: FPM related
Operating System: Linux
PHP Version: 5.6.22
-Assigned To:
+Assigned To: bukka
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2016-06-07 17:23:07] anrdaemon at yandex dot ru
Description:
------------
When PHP-FPM default configuration is used (master running as root, spawning setuid'd childs),
the childs' logs created with master's owner:group, which is extremely inconvenient.
https://bugs.php.net/bug.php?id=69662
Test script:
---------------
Install PHP-FPM SAPI.
Create a new user named i.e. "php-fpm".
Create a new FPM pool with
[php-fpm]
user = $pool
listen = <whatever suits your server>
access.log = "/home/$pool/php-access.log"
php_admin_value[error_log] = "/home/$pool/php-error.log"
Expected result:
----------------
Logs "/home/php-fpm/php-access.log" and "/home/php-fpm/php-error.log" created
with "php-fpm" owner.
Actual result:
--------------
Both logs will be created with root:root owner, or worse, if directory has SGID bit set, they will
be created with root:whatever but with 0600 permissions.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72357&edit=1