Re: How do I get root privileges in a script

From: Date: Sat, 25 Nov 2000 13:45:06 +0000
Subject: Re: How do I get root privileges in a script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27148@lists.php.net to get a copy of this message
Hi Juan! On Fri, 24 Nov 2000, Juan Germano wrote: > Hi. At boot I mount a FAT32 partition from linux. The files get 'root' > as owner and 'root' as group. The Apache runs as 'nobody', also php, so, > I don't have write permisions. The permisions in the fat32 partition can > not be change, so, what should I do? On the $subj, if you figure out, let us also know a.s.a.p. so we can write an advisory and post it on bugtraq :) On your question, why does it need to be root if you only read from it? if you need if mounted as owned by a different user than root then use uid=,gid= options (IIRC) when mounting. -- teodor

« previous php.general (#27148) next »