[plug] re: user access to public_html

John Clayton mageaere at hotmail.com
Tue Jul 15 21:41:49 WST 2003




>From: James Devenish <devenish at guild.uwa.edu.au>
>Reply-To: plug at plug.linux.org.au
>To: plug at plug.linux.org.au
>Subject: Re: [plug] re: user access to public_html
>Date: Tue, 15 Jul 2003 13:36:55 +0800
>
>In message <sf13ffc4.004 at mmtnetworks.com.au>
>on Tue, Jul 15, 2003 at 01:21:03PM +0800, Jon  Miller wrote:
> > Forbidden
> > You don't have permission to access /~sstone/test.php on this server.
>
>Ideas:
>
>  - Are your filesystem permissions correct?

To add a bit of light to this situation it must be understood that most 
webservers are configured *NOT* to run as root so when the go looking in a 
users home directory they need permission to do so. Since The webserver is 
unlikely to be in the same group as a user  the read and execute permissions 
for a users home directory that is going to have a web accessible directory 
in it  need to be provided to all. In other words a permission of 755 for 
the users home directory, web directory and all directories under the web 
directory is required for the webserver to get at the information in them.

>  - Did you try using a much simpler <Directory> block to ensure it
>    wasn't an error in the <Directory> block?
>
> > UserDir disable
> > UserDir enable username

In my config file I have
UserDir public_html
as the only UserDir directive in the file

>
>Are you joking? The keywords are "disabled" and "enabled", not "disable"
>and "enable" AFAIK. Perhaps it would be best to always copy-and-paste
>from a config file to avoid the ambiguity of typos in e-mail? On the
>subject of "UserDir", you could also include "UserDir disabled root" if
>you feel like it (just a general suggestion -- it wouldn't help resolve
>your current problem).
>
>

_________________________________________________________________
Hot chart ringtones and polyphonics. Go to  
http://ninemsn.com.au/share/redir/adTrack.asp?mode=click&clientID=174&referral=Hotmail_taglines_plain&URL=http://ninemsn.com.au/mobilemania/default.asp



More information about the plug mailing list