PHP switch user ???
| From: | NoSpeed | Date: | Sat, 10 Mar 2001 22:04:04 +0000 |
| Subject: | PHP switch user ??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-43219@lists.php.net to get a copy of this message | ||
Hi there.
Maybe this is a stupid question, i dunno, but untill now, nobody seemed to
be able to answer it, so here goes.
I have PHP4 running under apache as a DSO on a linux system.
This is cool, it runs as nobody, and thus is fairly safe.
But also very unfunctional when it comes to uploading files, manipulating
and removing files :(
Is there a way i can make PHP switch user for a while and then switch back ?
I mean, like making it switch from nobody to the desired user, do stuff,
when done, switch back to nobody ?
I do not want to make folders/files world writeable etc.
Thanks.
--
- NoSpeed
------------------------------------------------------
- Carpe Noctem
"The stickers on the side of the box said "Supported Platforms: Windows 98,
Windows NT 4.0, Windows 2000 or better", so clearly Linux was a supported
platform."