On Mon, 16 Sep 2002, Anette Seiler wrote:

> Dear All,
> 
> I have a cgi-script that is supposed to delete some files in a directory. I 
> am using File::Path::rmtree to do this. The files are chmoded 755.
> 
> Whenever I run this script from the command line, it does exactly as it is 
> supposed to do.
> 
> Whenever I run this script from within a browser, it skips over the files. 
> However, when I chmod the files 777 the script also works from within the 
> browser.
> 
> I suppose it has something to do with CGI. I have looked in the FAQs but 
> the only mentioning of the problem I found was in connection with an 
> Internal Server Error. However, I do not have such error.

It does not have anything to do with CGI, your webserver by default runs
as user apache and group apache (you will have to look into the 
/etc/httpd/conf/httpd.conf). This user does not have permissions to delete
these files (reason why 755 does not work through the browser but 777 
does). 

> 
> I am running the script on a Sun Solaris Machine with an Apache Web Server. 
> The owner of the files is the same as the owner of the script.
> 
> What could I do to make the script do what it is supposed to do regardless 
> of whether it is run from the command line or the browser?
> 
> Kind regards,
> 
> Anette 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to