Re: [PHP3] Writing to file - somebody other than nobody From: Richard Lynch (rlynch <email protected>)
Date: 11/30/99

At 02:49 PM 11/30/99 -0600, you wrote:
>The webserver (and PHP as a result) runs as user nobody.
>There is a directory that I want to write files (create or
>append) in but user nobody doesn't have write access to
>that directory. Is there any way that I can change current
>user in order to write the file then change back to user
>nobody?
>I read the FAQ, the docs, sample code and I can't see
>anything like this telling me one way or the other. Any
>info would be greatly appreciated.

You *could* create a PHP CGI binary and use suExec to run it and give it a
special user with permissions to write to this file and have it use a
different mime type...

Not sure it would be any better/worse than a suid shell script...

Sounds about the same to me, but I'm not an expert...

-- 
"TANSTAAFL"
http://CHaTMusic.com                       http://EmphasisEntertainment.com
http://L-I-E.com                           http://JadeMaze.com
http://CatCatalani.com                     http://MGMH.com
http://AstraKelly.com                      http://OlivierLedoux.com
http://VoodooKings.net                     http://UncommonGround.com

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>