php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61835 php-fpm is not allowed to run as root
Submitted: 2012-04-24 12:16 UTC Modified: 2012-05-23 08:39 UTC
From: william88 at gmail dot com Assigned: fat (profile)
Status: Closed Package: FPM related
PHP Version: 5.3.10 OS: FreeBSD
Private report: No CVE-ID: None
 [2012-04-24 12:16 UTC] william88 at gmail dot com
Description:
------------
Hi,

Yes, I know the risks about running php as root.
However there are situations where one would _need_ to do it, like appliances, 
accessing operating system resources or even for testing purposes.

It seems correct to warn and disallow it by default, but I think it is reasonable 
to have a "force" option that allows php-fpm running as root, as long there is a 
big message warning about the risks.

Expected result:
----------------
Allow to run as root

Actual result:
--------------
Not able to run as root, no force option available.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-23 08:38 UTC] fat@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=7b396c078cc8fef18f37cc9a22c437f13921e375
Log: - Fixed bug #61835 (php-fpm is not allowed to run as root)
 [2012-05-23 08:38 UTC] fat@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=06c7c3674b5e205023de7a150d29d78c313143f8
Log: - Fixed bug #61835 (php-fpm is not allowed to run as root)
 [2012-05-23 08:39 UTC] fat@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: fat
 [2012-05-23 08:39 UTC] fat@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2012-05-23 11:30 UTC] cataphract@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src.git;a=commit;h=7b396c078cc8fef18f37cc9a22c437f13921e375
Log: - Fixed bug #61835 (php-fpm is not allowed to run as root)
 [2014-10-07 23:25 UTC] stas@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=06c7c3674b5e205023de7a150d29d78c313143f8
Log: - Fixed bug #61835 (php-fpm is not allowed to run as root)
 [2014-10-07 23:25 UTC] stas@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=7b396c078cc8fef18f37cc9a22c437f13921e375
Log: - Fixed bug #61835 (php-fpm is not allowed to run as root)
 [2014-10-07 23:36 UTC] stas@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=06c7c3674b5e205023de7a150d29d78c313143f8
Log: - Fixed bug #61835 (php-fpm is not allowed to run as root)
 [2014-10-07 23:36 UTC] stas@php.net
Automatic comment on behalf of fat
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=7b396c078cc8fef18f37cc9a22c437f13921e375
Log: - Fixed bug #61835 (php-fpm is not allowed to run as root)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 08:01:29 2024 UTC