Error 403 Forbidden in /~user/ directories with apache 2 and mod_userdir

Just upgraded to Fedora Core 3 and now I am having trouble configuring apache.

My httpd conf file contains the following (just snipping out the parts that look important for size purposes)

___________________________________________________________
LoadModule userdir_module modules/mod_userdir.so

<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>

<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
        Order allow,deny
        Allow from all
</Directory>
___________________________________________________________

Now, when I acces http://localhost/ it loads the apache test page and everything looks great. But when I try http://localhost/~buck/ or http://localhost/~buck/index.html or any other file in my public_html directory, I get a -

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

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."

I've googled for hours and have read plenty of threads involving the same problem, but it almost always turns out to be a problem with permissions, but I've checked over and over and my permissions look good to me.

drwxr-xr-x /home
drwx-----x  /home/buck
drwxr-xr-x /home/buck/public_html
-rwxr--r--    /home/buck/public_html/index.html

Upon logging on another user in a seperate group, the expected results occur when listing the public_html folder and opening the index file.

ls /home/buck/public_html/
Gives me a list of all the files in my public_html

cat /home/buck/public_html/index.html
Gives me the source to my index page.



My question is, if this user with no special privileges, can read these files... why can't apache seem to do the same?
LVL 2
bgbuck7Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bgbuck7Author Commented:
OK, nevermind about everything else working fine... This is very strange. look at this:

>[root@localhost html]# ls -l -R
>.:
>total 24
>-rw-r--r--  1 root root    5 Nov 25 20:28 test
>drwxr-xr-x  2 root root 4096 Nov 25 20:32 testdir
>drwxr-xr-x  2 root root 4096 Nov 25 20:32 testdir2
>
>./testdir:
>total 8
>-rw-r--r--  1 root root 5 Nov 25 20:32 test
>
>./testdir2:
>total 8
>-rw-r--r--  1 root root 5 Nov 25 20:32 test

Now when I get http://localhost/ I show's me a directory listing containing test and testdir... there's no testdir2!  As you can see, the permissions and contents of the directories are identical.... The only difference is that testdir2 was moved to /var/www/html/ from a different directory using mv.
0
bgbuck7Author Commented:
I fixed it. And it wasn't a problem with my apache or my permissions... Apache was being interfered with by SELinux. I disabled SELinux for just httpd and it works fine now. I'm seriously contemplating removing SELinux from my computer, for one I don't really trust anything from the NSA, and two, it really doesn't seem to help secure anything, just break stuff.
0
yuzhCommented:
check your error_log file, to see the cause of the problem.

also check the dir/file permissions, see
http:Q_21217643.html#12661865
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

yuzhCommented:
Please  see my answer to the following question:
http:Q_21217643.html

Same problem!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bgbuck7Author Commented:
Reading comments before trying to answer always helps :-p Turned out to be a completely different problem, but thanks for the help anyways.
0
thtranceCommented:
I fixed it. And it wasn't a problem with my apache or my permissions... Apache was being interfered with by SELinux. I disabled SELinux for just httpd and it works fine now.

There is not a problem with SELinux.
Check out this URL on SELinux and Apache with Fedora.

http://fedora.redhat.com/docs/selinux-apache-fc3/sn-user-homedir.html
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.