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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri Jan 24 14:01:30 2025 UTC