Bug #71116 [Opn->Fbk]: Username "on" becomes "daemon"
| From: | laruence@php.net | Date: | Mon, 14 Dec 2015 14:50:33 +0000 |
| Subject: | Bug #71116 [Opn->Fbk]: Username "on" becomes "daemon" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-197870@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71116&edit=1
ID: 71116
Updated by: laruence@php.net
Reported by: arzeth0 at gmail dot com
Summary: Username "on" becomes "daemon"
-Status: Open
+Status: Feedback
Type: Bug
Package: FPM related
Operating System: Debian Jessie
PHP Version: 5.6.16
Block user comment: N
Private report: N
New Comment:
you may try with user="on"
as on probably means 1, and you daemon's userid must be 1..
thanks
Previous Comments:
------------------------------------------------------------------------
[2015-12-14 12:16:25] arzeth0 at gmail dot com
Description:
------------
I use php5-fpm (5.6.14+dfsg-0+deb8u1) that is provided by the default Debian repositories.
I have a user "on". I created a php-fpm pool for him. But for some reason the process is
owned by "daemon" instead of "on".
Everything becomes fine if I change
user and group to "ot" or
any other username.
Everything is fine with my other 70 php-fpm users on my server, therefore it must be a bug.
Test script:
---------------
$ head -n 4 /etc/php5/fpm/pool.d/on.conf
[on]
user = on
group = on
$ ps aux | grep on
daemon 17650 0.0 1.0 383128 10888 ? S 16:43 0:00 php-fpm: pool on
daemon 17651 0.0 1.0 383128 10892 ? S 16:43 0:00 php-fpm: pool on
$ grep on /etc/passwd
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
on:x:1071:1071:,,,:/home/on:/bin/bash
$ ls -ld /home/on
drwxr-xr-x 9 on on 4.0K Dec 12 00:47 /home/on
Expected result:
----------------
$ ps aux | grep on
on 17650 0.0 1.0 383128 10888 ? S 16:43 0:00 php-fpm: pool on
on 17651 0.0 1.0 383128 10892 ? S 16:43 0:00 php-fpm: pool on
Actual result:
--------------
$ ps aux | grep on
daemon 17650 0.0 1.0 383128 10888 ? S 16:43 0:00 php-fpm: pool on
daemon 17651 0.0 1.0 383128 10892 ? S 16:43 0:00 php-fpm: pool on
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71116&edit=1