lynx_as_nobody

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Re: how to get lynx to run as user nobody via Apache & PHP
From: Robert Soros <robert@soros.ath.cx>
Date: 21 Aug 2000 06:38:23 +0500




pete wrote:

> Is there a way to use lynx as the user nobody. Or is this a bad idea ?
> 
> I need to convert a URL (php'ed) to ASCII, and tried to run lynx from
> within a PHP script. Since Apache runs as the user nobody. I've
> found that lynx tries to create temp files that can't be opened.

One thing you could do is chown the lynx binary to nobody

chown nobody:nobody /usr/bin/lynx

then setuid the bin,

chmod +s /usr/bin/lynx

this will cause lynx to run as user 'nobody' regardless of who starts
it..

===

Subject: Re: how to get lynx to run as user nobody via Apache & PHP
From: Bret Hughes <bhughes@elevating.com>
Date: Sun, 20 Aug 2000 22:14:20 -0500

Pete Lancashire wrote:

> Is there a way to use lynx as the user nobody. Or is this a bad idea ?
>
> I need to convert a URL (php'ed) to ASCII, and tried to run lynx from
> within a PHP script. Since Apache runs as the user nobody. I've
> found that lynx tries to create temp files that can't be opened.
>
> Any suggestions ?

you could use sudo -u username lynx url

create a dummy user and away you go.

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu