php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71116 Username "on" becomes "daemon"
Submitted: 2015-12-14 12:16 UTC Modified: 2015-12-14 21:34 UTC
From: arzeth0 at gmail dot com Assigned:
Status: Closed Package: FPM related
PHP Version: 5.6.16 OS: Debian Jessie
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: arzeth0 at gmail dot com
New email:
PHP Version: OS:

 

 [2015-12-14 12:16 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-14 14:50 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2015-12-14 14:50 UTC] laruence@php.net
you may try with user="on"

as on probably means 1, and you daemon's userid must be 1..

thanks
 [2015-12-14 21:34 UTC] arzeth0 at gmail dot com
-Status: Feedback +Status: Closed
 [2015-12-14 21:34 UTC] arzeth0 at gmail dot com
Thanks! user="on" works.

I thought that it was a custom configuration format, which
was different from php.ini,
because php-fpm's files have extension .conf instead of .ini
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Tue Nov 13 05:01:25 2018 UTC