[PHP] Re: [CIRCLE#3279] Re: [PHP] exec 'lynx' failed ??? From: Van (vanboers <email protected>)
Date: 09/29/00

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
=========================================================================

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>