You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by kris duff <t_...@yahoo.ca> on 2007/09/08 06:24:58 UTC

[users@httpd] Forbidden access to userdir

Hi

I installed the latest apache version (2.2.6).  I used
the default httpd.conf file except for the userdir
directory which is include the file
extra/httpd-userdir.conf

I can access the "main website" from
/[..]/apache/htdocs but when I put the
http://[..]/~my_user  I received on my browser : 

FORBIDDEN

You don't have permission to access /~my_user on this
server.

On the access_log I can see the following message :
[...] "GET /~my_user HTTP/1.1" 403 207

And the error_log :
[...] (13)Permission denied: access to /~my_user
denied

my index.html has 777 root.root as privilege and the
"." has 777 my_user.my_user of privilege

I installed apache from source using the following
command :
./configure  \
--with-expat=builtin  \
--prefix=/usr/local/apache \
--enable-shared=max \
--enable-module=rewrite \
--enable-module=so \
make ; make install

Everything seems good for me, so I'm looking for some
help or advice to resolve this issue.  

Thank you a lot

Kris



      Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Forbidden access to userdir

Posted by Vincent Bray <no...@gmail.com>.
On 08/09/2007, kris duff <t_...@yahoo.ca> wrote:
> I also tried your's and it don't works.

Assuming you're on a gnu system, try:

namei -m /home/my_user/public_html/index.html

.. making sure to spell out the path in full. That'll show you any
parts of the path that don't have +x set for the relevant
user/group/other.

-- 
noodl

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Forbidden access to userdir

Posted by kris duff <t_...@yahoo.ca>.
Thank you for reply

I changed the group of the public_html for
my_user.apache . It's not working more.

My configuration for userdir is :

UserDir public_html
<Directory "/home/*/public_html">
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch
IncludeNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>


I also tried your's and it don't works.

Thank you for your help

--- Phillip Hamilton <ph...@myarchive.biz> wrote:

> You probably haven't set up a directory statement
> for the home dirs. 
> 
> Something like:
> 
> <Directory "/home/*/public_html">
> Options Indexes FollowSymLinks
> AllowOverride All 
> Order allow,deny
> Allow from all
> </Directory>
> 
> 
> 
> -----Original Message-----
> From: kris duff [mailto:t_dufff@yahoo.ca] 
> Sent: Friday, September 07, 2007 11:25 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] Forbidden access to userdir
> 
> Hi
> 
> I installed the latest apache version (2.2.6).  I
> used
> the default httpd.conf file except for the userdir
> directory which is include the file
> extra/httpd-userdir.conf
> 
> I can access the "main website" from
> /[..]/apache/htdocs but when I put the
> http://[..]/~my_user  I received on my browser : 
> 
> FORBIDDEN
> 
> You don't have permission to access /~my_user on
> this
> server.
> 
> On the access_log I can see the following message :
> [...] "GET /~my_user HTTP/1.1" 403 207
> 
> And the error_log :
> [...] (13)Permission denied: access to /~my_user
> denied
> 
> my index.html has 777 root.root as privilege and the
> "." has 777 my_user.my_user of privilege
> 
> I installed apache from source using the following
> command :
> ./configure  \
> --with-expat=builtin  \
> --prefix=/usr/local/apache \
> --enable-shared=max \
> --enable-module=rewrite \
> --enable-module=so \
> make ; make install
> 
> Everything seems good for me, so I'm looking for
> some
> help or advice to resolve this issue.  
> 
> Thank you a lot
> 
> Kris
> 
> 
> 
>       Be smarter than spam. See how smart SpamGuard
> is at giving junk email
> the boot with the All-new Yahoo! Mail at
> http://mrd.mail.yahoo.com/try_beta?.intl=ca
> 
> 
>
---------------------------------------------------------------------
> 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@httpd.apache.org
>    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
> 
> 
> 
>
---------------------------------------------------------------------
> 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@httpd.apache.org
>    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
> 
> 



      Get news delivered with the All new Yahoo! Mail.  Enjoy RSS feeds right on your Mail page. Start today at http://mrd.mail.yahoo.com/try_beta?.intl=ca

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Forbidden access to userdir

Posted by Phillip Hamilton <ph...@myarchive.biz>.
You probably haven't set up a directory statement for the home dirs. 

Something like:

<Directory "/home/*/public_html">
Options Indexes FollowSymLinks
AllowOverride All 
Order allow,deny
Allow from all
</Directory>



-----Original Message-----
From: kris duff [mailto:t_dufff@yahoo.ca] 
Sent: Friday, September 07, 2007 11:25 PM
To: users@httpd.apache.org
Subject: [users@httpd] Forbidden access to userdir

Hi

I installed the latest apache version (2.2.6).  I used
the default httpd.conf file except for the userdir
directory which is include the file
extra/httpd-userdir.conf

I can access the "main website" from
/[..]/apache/htdocs but when I put the
http://[..]/~my_user  I received on my browser : 

FORBIDDEN

You don't have permission to access /~my_user on this
server.

On the access_log I can see the following message :
[...] "GET /~my_user HTTP/1.1" 403 207

And the error_log :
[...] (13)Permission denied: access to /~my_user
denied

my index.html has 777 root.root as privilege and the
"." has 777 my_user.my_user of privilege

I installed apache from source using the following
command :
./configure  \
--with-expat=builtin  \
--prefix=/usr/local/apache \
--enable-shared=max \
--enable-module=rewrite \
--enable-module=so \
make ; make install

Everything seems good for me, so I'm looking for some
help or advice to resolve this issue.  

Thank you a lot

Kris



      Be smarter than spam. See how smart SpamGuard is at giving junk email
the boot with the All-new Yahoo! Mail at
http://mrd.mail.yahoo.com/try_beta?.intl=ca


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Forbidden access to userdir

Posted by Vincent Bray <no...@gmail.com>.
On 08/09/2007, kris duff <t_...@yahoo.ca> wrote:
> And the error_log :
> [...] (13)Permission denied: access to /~my_user
> denied

This is a filesystem permissions error. Most likely, your home
directory is closed to the apache user. It's important to realise that
on unix systems, a user accessing a file needs not only read access to
the file, but execute access to all parent directories.

Try chmod o+x ~my_user

Or alternatively, change your home directory's group to a group that
contains the web server's user.

-- 
noodl

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org