Re: permission problem (still)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2009-08-27 at 12:13 +0200, André Warnier wrote:
> Chuck Crisler wrote:
> > On Fri, 2009-08-21 at 09:37 +0100, Tom Evans wrote:
> > 
> > 
> > My cgi-bin directory (/var/www/cgi-bin) is owned by root with these
> > permissions drwxr-xr-x. This is from my httpd.conf
> > 
> Hi.
> On my Linux (Debian) systems, the cgi-bin directories - and the scripts 
> in it - have a owner "root", but a group "www-data", and are executable 
> by this group "www-data".

On Fedora, the user/group is apache/apache. The directories and files
are owned by root/root. My directories and files are all rwxr-xr-x. At
least, the ones that I have looked at. That should mean that everyone
can execute the scripts in my cgi-bin directory. My httpd.conf file also
specifies allow all in the cgi-bin directory directives. Once I get it
working I will change that to be more restrictive.

I suspect that somehow I am specifying the directory wrong and it isn't
using the right cgi-bin directory. The permissions are correct and it
should work if it was using the intended directory. I created a cgi-bin
directory under my home directory and changed the httpd.conf file
appropriately (I think) and that didn't make a difference. Yes, I made
sure that the directory and file permissions were correct. I stop and
then start apache when I modify the httpd.conf file rather than simply
re-start. I do this from the services app.

I have Mason installed and the Perl scripts are routed through it. I
wonder if that could be causing a problem? I have tried commenting out
the Mason portions of the httpd.conf file and that didn't make any
difference. Is there a way to see the entire directory name in the error
log?

Chuck

> 
> Apache starts up as root (which allows it to open a listening port 80), 
> but then (in a prefork config at least), the children runs as 
> www-data/www-data.
> (See the User and Group directives in your conf file).
> I presume that cgi-bins must be executable by the user/group the Apache 
> children run as.
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux