|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #10065 User Impersonation
Submitted: 2001-03-29 16:33 UTC Modified: 2001-03-29 16:48 UTC
From: wizaerd at wizaerd dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.4pl1 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
7 + 28 = ?
Subscribe to this entry?

 [2001-03-29 16:33 UTC] wizaerd at wizaerd dot com
It's be nice to be able to run a PHP script as a specific user, perhaps a user specified user.  It would have to authenticate username and password, but then instead of CHMODding our directories and files for file uploads, an upload script could behave as the owner of those directories...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-29 16:48 UTC]
this is a webserver topic and nothing 
php itself can control as it inherits
the user settings from the webserver 
it runs in or is started from
when run as cgi you have some control
via apaches suexec(?) config options
but unless you run php cgi as root
(which is a very bad idea IMHO) there
is no way to have PHP itself control
the process user settings
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Sep 27 14:01:25 2023 UTC