[K12OSN] Apache userdir not working

Sudev Barar sudev at mantraonline.com
Tue Jan 4 23:49:50 UTC 2005


On Tue, 2005-01-04 at 06:31 -0500, Jack wrote:
> For some reason I am not able to get Apache to display the public_html
> contents of a users home directory to work.  I keep getting a 403 error
> Forbidden.
> 
> The log has this line: 
> [Tue Jan 04 06:00:37 2005] [error] [client 192.168.1.130] (13)Permission
> denied: access to /~jack denied
> 
> The whole url would be:  http://homeserver/~jack
> 
> I've uncommented the userdir section in the httpd.conf file and
> restarted apache:
> 
> <IfModule mod_userdir.c>
>     #
>     # UserDir is disabled by default since it can confirm the presence
>     # of a username on the system (depending on home directory
>     # permissions).
>     #
>     # UserDir disable
> 
>     #
>     # To enable requests to /~user/ to serve the user's public_html
>     # directory, remove the "UserDir disable" line above, and uncomment
>     # the following line instead:
>     #
>     UserDir public_html
> 
> </IfModule>
> 
>  That should do it but it doesn't work.  I'm not sure what I am missing
> here.
> 
> As a last resort I've made the permissions for the /home/jack  directory
> 777
> 
> Also the /home is set for 777 

You need to set /home/user to 711 and /home/user/public_html to 755
Setting 777 is not the answer. Try using chmod -R 711 /home/user.

HTH

-- 
Sudev Barar
Learning Linux




More information about the K12OSN mailing list