Re: running a php script as a user

From: Date: Fri, 10 Aug 2001 21:59:25 +0000
Subject: Re: running a php script as a user
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62226@lists.php.net to get a copy of this message
On Fri, 10 Aug 2001 14:28:06 -0700, Mike Eheler (meheler@searchbc.com) wrote: >Okay, I'll try to make this short. > >I work for a hosting provider, and thustly we have a few hundred >clients. We have been working to provide a web-based file management >system for the users, but have come across a stumbling block. The >problem is allowing the users read/write/delete/move/create access >to >their folders on the server. We want to be able to run a central php >script, but be able to dynamically tell that script what user to run >as, >based on HTTP authentication (username & password provided). > >I've seen plenty of documentation about running scripts that use the >suid bit, but those scripts are required to be owned by the person >who >the script is to be run as. > >Any help is greatly appreciated, > Mike you didn't mention what os you're running so I'm guessing linux. Setting the suid of a php script won't work because it's not a binary file. you need to set the suid of the php executable, which means you probably want to have a copy of it in each user's home directory.

« previous php.general (#62226) next »