You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Damian A. Colden" <da...@housing-solutions.com> on 2002/07/11 00:26:22 UTC

Re: UserDir/403 error

The permissions need to be

RWXR-XR-X on your public_html directory.


On 10 Jul 2002, Allen Crawford scribbled this about UserDir/403 error:

> Hello,
> 
> I'm brand new to this list and am mainly joining to pick up some
> knowledge of Apache.  I'm fairly new to Linux and Apache but am
> learning quickly.
> 
> Anyway, on to my problem.  I'm trying to utilize the UserDir
> directive.  I have basically a default installation of Apache 2.0.39. 
> I added "UserDir disabled root" in addition to the default "UserDir
> public_html" line.  I then created a "public_html" directory under my
> home directory and made it world-readable and executable.  I also
> created an "index.html" file with world-readable permissions.
> 
> After all of this, I am trying to access my page by typing
> http://servername/~username/ <http://servername/~username/>  and I'm
> getting the 403-Forbidden error.  I have tried changing things so that
> Apache runs as the "apache" user that I created, but that didn't help,
> so I'm back to the default of "nobody."
> 
> So, any suggestions on how to fix this?  I compiled from source using
> all the defaults (i.e. configure with no command line
> options/switches).
> 
> In addition, I was wondering if the "public_html" folder in the user
> directories needs to be world-executable, or if world-readable is good
> enough?
> 
> Thanks a lot,
> Allen
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For
> additional commands, e-mail: users-help@httpd.apache.org
> 



Damian A. Colden, P.E.
D. A. Colden & Associates
Engineering Managment and Strategic Planning 
5376 McCandlish Rd.  Suite 101
Grand Blanc, MI 48439
(810) 694-3614
(810) 694-2229 (facsimile)
email: damian.colden@housing-solutions.com
http://www.diws.com/daca


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: UserDir/403 error

Posted by Gary Turner <kk...@swbell.net>.
On Wed, 10 Jul 2002 18:26:22 -0400, Damian A. Colden wrote:

>The permissions need to be
>
>RWXR-XR-X on your public_html directory.
                               ^^^^^^^^^
>From my previous post:

"Not quite true.  I find that -rw-r--r-- is sufficient permission."

Ack!  Should be true that the directory needs to be executable, but
files need be read only (except for owner).  Sorry about that.
--
gt
It ain't so much what you don't know that gets you in trouble---
it's what you do know that ain't so.--unk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: UserDir/403 error

Posted by Gary Turner <kk...@swbell.net>.
On Wed, 10 Jul 2002 18:26:22 -0400, Damian A. Colden wrote:

>The permissions need to be
>
>RWXR-XR-X on your public_html directory.

Not quite true.  I find that -rw-r--r-- is sufficient permission.

>
>
>On 10 Jul 2002, Allen Crawford scribbled this about UserDir/403 error:
>

<snip>

>> I then created a "public_html" directory under my
>> home directory and made it world-readable and executable.  I also
>> created an "index.html" file with world-readable permissions.
>> 
>> After all of this, I am trying to access my page by typing
>> http://servername/~username/ <http://servername/~username/>  and I'm
>> getting the 403-Forbidden error. 

You might check your permissions directive for the user directory to be
sure that gets, etc. are allowed.  This directive assumes a read only
directory.

<Directory /home/*/public_html>
...
...
	<limit GET POST OPTIONS PROPFIND>
		order		allow,deny
		Allow from all
	</Limit>
	<Limit PUT DELETE PATCH PROPPATCH MKCOL COPY ...(etc.)>
		Order deny,allow
		Deny from all
	</Limit>
</Directory>

As a newbie myself, I must be one day ahead of you---I just did work
through this one.
<snip>
>> 
>> In addition, I was wondering if the "public_html" folder in the user
>> directories needs to be world-executable, or if world-readable is good
>> enough?

See above.  
--
gt
Everything here could be wrong--Messiah's Handbook--Bach

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org