Re: PHP User Permissions

From: Date: Fri, 13 Sep 2002 15:37:50 +0000
Subject: Re: PHP User Permissions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-116288@lists.php.net to get a copy of this message
fre, 2002-09-13 kl. 15:06 skrev Doug Kozar: > Does anyone know how to define a PHP script (within itself) to run as a > certain user. Currently my PHP scirpt runs as "nobody" and I need to change > the user it runs as temporarily to get certain permissions to update a file. Of course it doesn't. By altering (which isn't possible anyway) , even momentarily, the (suppose you're running Apache?) Apache user to anyone with different perms, you'll break everything. Change the group file permission of the file to g+w and the group of the file to nobody. Best, Tony -- Tony Earnshaw Tha can allway tell a Yorkshireman, but tha canna tell 'im much. e-post: tonni@billy.demon.nl www: http://www.billy.demon.nl gpg public key: http://www.billy.demon.nl/tonni.armor Telefoon: (+31) (0)172 530428 Mobiel: (+31) (0)6 51153356 GPG Fingerprint = 3924 6BF8 A755 DE1A 4AD6 FA2B F7D7 6051 3BE7 B981 3BE7B981

Attachment: [application/pgp-signature] Dette er en digitalt signert meldingsdel signature.asc
« previous php.general (#116288) next »