php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wizaerd at wizaerd dot com
New email:
PHP Version: OS:

 

 [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...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-29 16:48 UTC] hholzgra@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 24 13:01:32 2024 UTC