Posted by Andy Jeffries on 02/23/06 13:03
On Wed, 22 Feb 2006 18:07:24 -0800, Stephen wrote:
> Forgot to point out how the cron job (actually a PHP script) runs ...
>
> 3a) cron executes scp -p origfile sg@www2:destfile 3b) destfile appears on
> www2 with ownership sg/sg, same permissions as origfile
So can't you chown the origfile to nobody/www (i.e. nobody:sg or
www:sg, depending on which you use) after scping with cron? That way it
will be owned by nobody/www and the web server will be able to overwrite
it.
Cheers,
Andy
--
Andy Jeffries | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos
[Back to original message]
|