Pls help: strange permission denied problem

This is a discussion on Pls help: strange permission denied problem within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi all, I got permission denied error when accessing a directory which is world readable (755 for directories and 644 ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-26-2005
wst305@gmail.com
 
Posts: n/a
Default Pls help: strange permission denied problem

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>

  #2 (permalink)  
Old 10-27-2005
Tim
 
Posts: n/a
Default Re: Pls help: strange permission denied problem

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.

  #3 (permalink)  
Old 10-27-2005
wst305@gmail.com
 
Posts: n/a
Default Re: Pls help: strange permission denied problem

Tim wrote:
> 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.


It works ! Sorry for the newbie question.

Thanks a lot.

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:42 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0