Re: [CIRCLE#3279] Re: [PHP] exec 'lynx' failed ???

From: Date: Fri, 29 Sep 2000 23:22:26 +0000
Subject: Re: [CIRCLE#3279] Re: [PHP] exec 'lynx' failed ???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-18142@lists.php.net to get a copy of this message
Sonia Tsui wrote: > > Hi Rasmus, > > I did : > su nobody > strace lynx > > I got : > write(2, "metamail: Can\'t open temporary f"..., 37metamail: Can't open > temporary file! > > So how do I fix the permission ? I think since it's nobody, so no home > directory for nobody. > thanks Sonia: Now, you're going to have to post a snippet from the cgi in that link. Before going any further, try to do a /usr/bin/lynx to a normal non-cgi site and see if it parses. If you really do need to allow nobody to access the file reference, I'd look closely at the security implications of doing so. Nobody might need to read it, in which case the directory it's in needs to be chmod-ded executable for world (I won't post the command, since I think you need to do more research on the cgi), and chmod-ded readable and probably (since your strace points to a write call) writeable for nobody {the 37metamail file}. In sum: Do you really want to let nobody write to your file-systems? I hope your answer is no. Best Regards, Van -- ========================================================================= Linux rocks!!! http://www.dedserius.com =========================================================================

« previous php.general (#18142) next »