Re: run extension library as different uid/gid?
| From: | Marek Kilimajer | Date: | Thu, 29 May 2003 10:00:00 +0000 |
| Subject: | Re: run extension library as different uid/gid? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149370@lists.php.net to get a copy of this message | ||
You can make a wraper setuid script and execute it, or chown /dev/your_storage
Joe Wong wrote:
Hi, I have created an extension library for my own use. This library needs to access a storage area needs specific user ID to operate. If I start Apache as normal ( using User Apache, Group Apache in httpd.conf ), my PHP script fails to run. I try to setuid / setguid on the PHP script ( this script will call the function in my extension library ) to the specific uid/gid I need, it didn't work. The only way I can make it work is to run Apache as the uid/gid that I needed. But this is surely breaking something else. What should I do in order to resolve this? TIA. - Joe