Bug #71116 [NEW]: Username "on" becomes "daemon"

From: Date: Mon, 14 Dec 2015 12:16:39 +0000
Subject: Bug #71116 [NEW]: Username "on" becomes "daemon"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197858@lists.php.net to get a copy of this message
From:             arzeth0 at gmail dot com
Operating system: Debian Jessie
PHP version:      5.6.16
Package:          FPM related
Bug Type:         Bug
Bug description:Username "on" becomes "daemon"

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 bug report at https://bugs.php.net/bug.php?id=71116&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=71116&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=71116&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=71116&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=71116&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=71116&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=71116&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=71116&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=71116&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=71116&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=71116&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=71116&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=71116&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=71116&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71116&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=71116&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=71116&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=71116&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71116&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=71116&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=71116&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#197858) next »