apache2 - wwwrun cant create files? Help!

From: Coenraad Loubser (c10u_at_ananzi.co.za)
Date: 02/25/05


Date: Fri, 25 Feb 2005 03:50:35 +0200

Hi

I've got a standard SuSe9.1 setup with Apache2 - I've got a little script
that calls wget to download an image and then process it. The problem is,
wget says it doesnt have permission to write ANYWHERE, regardless of the
user or permissions I set on whatever path I give it!

Can anyone explain to me what is happening and why... and what I should do.

I've set the user to wwwrun, and chmod a+rwx everything, on several paths,
and pointed wget to write there, only to get the exact same result.

Curiously, wwwrun cant list my /srv/www/htdocs directory.. HMM??/ Even if i
give it permission?
How and why?

Probably my perl that is lacking, too

#!/usr/bin/perl
print "Content-type: text/plain\n\n";
print `pwd`;
print `whoami`;
print `ls /var/lib/wwwrun`;
print `wget http://www.weathersa.co.za/weathersa/RadarMaps/CT.gif ~/ -v -o
/dev/
#print `convert -crop 263x238+177+240 -resize 300% /srv/www/htdocs/CT.gif
/var/l
print 'it is done!';

--------- output:
/srv/www/cgi-bin
wwwrun
--03:47:06-- http://www.weathersa.co.za/weathersa/RadarMaps/CT.gif
           => `CT.gif'
Resolving www.weathersa.co.za... 196.25.43.195
Connecting to www.weathersa.co.za[196.25.43.195]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26,225 [image/gif]
CT.gif: Permission denied

Cannot write to `CT.gif' (Permission denied).
/var/lib/wwwrun/: Unsupported scheme.

FINISHED --03:47:06--
Downloaded: 0 bytes in 0 files
it is done!



Relevant Pages

  • Re: Ping Chatty Cathy/nb (Re: Blinky the Shark
    ... with Linux as most distros have wget. ... Windows users can dwnld a free ... if we can get permission I'd ... I don't have time to do the maintenance on a website. ...
    (rec.food.cooking)
  • RE: [7.8.2002 44916] Notice of Copyright Infringement]
    ... copyright in this fashion is just that kind of permission. ... > of the file on your hd, and compares it with the hashes on everyone elses ... Of course the movie house give the company legal ... > permission to download etc the file, therefore they are not in contravention ...
    (Vuln-Dev)
  • Re: [7.8.2002 44916] Notice of Copyright Infringement]
    ... > More to the point are the key copyright words, ... > copyright in this fashion is just that kind of permission. ... >> permission to download etc the file, therefore they are not in contravention ... >> delivering to the intended recipient, be advised that you have received ...
    (Vuln-Dev)
  • Re: TeXBook
    ... explicit permission for downloading. ... location it gives people permission to download. ... Absense of protection means there is no protection ergo some thing is ... Whole internet was build on base that content, files, information is ...
    (comp.text.tex)
  • Re: Framework 1.1 security questions
    ... Internet assemblies are only granted Same Site Web Permission by ... >>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 ... >>do it only to the origin server without asking for any permissions? ...
    (microsoft.public.dotnet.security)