Web Servers on Unix and Linux - Pls help: strange permission denied problem

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > October 2005 > Pls help: strange permission denied problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Pls help: strange permission denied problem
wst305@gmail.com

2005-10-26, 5:52 pm

Hi all,

I got permission denied error when accessing a directory which is world
readable (755 for directories and 644 for files). Attached is snap of
my httpd.conf. I've no problem in accessing /data1/* but got
permission denied /data2/*.

I'm using bundled httpd 2.0.53-3.3 on Fedora Core 3.
Would any one please help? Sorry for the newbie question.

Thank you very much.
ST Wong

-------------------- cut here --------------------------
ScriptAlias /data1/cgi-bin "/usr/local/data1/sbin"

<Directory "/usr/local/data1/sbin">
Options ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from All
</Directory>

Alias /data1 "/usr/local/data1/share"
<Directory "/usr/local/data1/share">
AllowOverride AuthConfig
Order allow,deny
Allow from All
</Directory>


ScriptAlias /data2/cgi-bin /backup/usr/local/data2/sbin
<Directory /backup/usr/local/data2/sbin>
Options ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from All
</Directory>

Alias /data2 /backup/usr/local/data2/share
<Directory /backup/usr/local/data2/share>
AllowOverride AuthConfig
Order allow,deny
Allow from All
</Directory>

Tim

2005-10-27, 2:47 am

On Wed, 26 Oct 2005 06:35:50 -0700, wst305 sent:

> I got permission denied error when accessing a directory which is world
> readable (755 for directories and 644 for files). Attached is snap of my
> httpd.conf. I've no problem in accessing /data1/* but got permission
> denied /data2/*.
>
> I'm using bundled httpd 2.0.53-3.3 on Fedora Core 3. Would any one please
> help?


The obvious questions are: Do you have SELinux enabled, and are SELinux
permissions set to allow webserving from other directories? (That may
require a configuration of SELinux as well as tweaking of file and
directory permissions.) There's a FAQ about this (Apache and SELinux) on
the Fedora website.

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please destroy some files yourself.

wst305@gmail.com

2005-10-27, 2:47 am

Tim wrote:
> On Wed, 26 Oct 2005 06:35:50 -0700, wst305 sent:
>
>
> The obvious questions are: Do you have SELinux enabled, and are SELinux
> permissions set to allow webserving from other directories? (That may
> require a configuration of SELinux as well as tweaking of file and
> directory permissions.) There's a FAQ about this (Apache and SELinux) on
> the Fedora website.
>
> --
> If you insist on e-mailing me, use the reply-to address (it's real but
> temporary). But please reply to the group, like you're supposed to.
>
> This message was sent without a virus, please destroy some files yourself.


It works ! Sorry for the newbie question.

Thanks a lot.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com