|
Home > Archive > Web Servers on Unix and Linux > May 2005 > newbie: 403 Forbidden Access with UserDir and Symbolic
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
newbie: 403 Forbidden Access with UserDir and Symbolic
|
|
|
| I'm running RedHat rel 9 and apache 2.0, trying to setup user directories.
I've tried symbolic directories and and UserDir directive, but both return a
403 error. The permissions are 755. Can anyone show me what to do to get
symbolic directories are the UserDir to work.
Thanks.
| |
|
| On Sun, 8 May 2005 21:13:05 -0500,
"Carl" <cmueller@msn.com> posted:
> I'm running RedHat rel 9 and apache 2.0, trying to setup user directories.
> I've tried symbolic directories and and UserDir directive, but both return a
> 403 error. The permissions are 755. Can anyone show me what to do to get
> symbolic directories are the UserDir to work.
Do the parent directories have suitable permissions, too?
Assuming something like "/home/username/public_html/", the /home/ directory
needs to be world executable, the /username/ directory needs to be world
executable, the /public_html/ directory needs to world readable and
executable, and so do all of its contents.
e.g. *minimum* permissions:
drwx-----x /home/
drwx-----x /home/tim/
drwx---r-x /home/tim/public_html/
drwx---r-- /home/tim/public_html/homepage.html
drwx---r-- /home/tim/public_html/something.jpeg
I've found that, working from default setups, once you uncomment out the
comments around the user-dir directives, enable user-dirs for the users
that you want, and make the home directories world executable/readable (as
required), that's all I needed to do with Red Hat 9 Linux.
e.g. to allow all users to have their own public_html directory, and
protect the root, I have this:
<IfModule mod_userdir.c>
UserDir Disabled root
UserDir enable
UserDir public_html
</IfModule>
Followed by the defaults in the following
<Directory /home/*/public_html>
</Directory>
block (just delete the hash marks starting off each line).
--
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 delete some files yourself.
|
|
|
|
|