LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-19-2007, 04:14 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Rep: Reputation: 31
You don't have permission to access myFile.MP4 on this server.


Hi!

I run Apache/2.2.4 (Fedora) and I canīt reach some mp4 files in one directory. I have 6 files with an .MP4 extension. When I try to reach them, I get the message "You don't have permission to access myFile.MP4 on this server."
Iīve created a text file (.txt) in the same directory, an I can reach it without problem. All those files have exactly the same permissions
Quote:
rw-r--r-- 1 apache apache
.

What is the reason for my problem?

Thanks.
 
Old 09-20-2007, 12:37 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,999
Blog Entries: 54

Rep: Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745
What do the Apache logs tell you?
 
Old 09-21-2007, 02:38 AM   #3
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
error_log just says
Quote:
(13)Permission denied: access to /myDirectory/myFile.MP4 denied
it doesnīt help much...
 
Old 09-23-2007, 04:14 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,999
Blog Entries: 54

Rep: Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745Reputation: 2745
Is SELinux active? Anything about that in syslog or any other audit log? Checked the security context ('ls' with the "-Z" flag)?
 
Old 09-24-2007, 04:45 AM   #5
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by unSpawn View Post
Is SELinux active? Anything about that in syslog or any other audit log? Checked the security context ('ls' with the "-Z" flag)?
Thanks for the answer! Yes SELinux is activ, and with ls- Z and get part of the answer:
the files I canī t reach are schown like this:
Quote:
-rw-r--r-- apache apache user_ubject_r:httpd_sys_content_t
and the one I can read are schown like that:
Quote:
rw-r--r-- apache apache user_ubject_r:user_home_t
I found some further explanations hier:
http://docs.fedoraproject.org/selinu...ple-setup.html
http://docs.fedoraproject.org/selinu...ple-setup.html


now it works.
thanks again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forbidden You don't have permission to access / on this server tekmann33 Linux - Software 4 06-16-2009 03:17 AM
You don't have permission to access /~username on this server. sijolinux Linux - Newbie 5 01-03-2008 05:19 PM
you don't have permission to access / on this server dus3d Linux - Software 5 04-18-2006 11:43 PM
You don't have permission to access / on this server. jkpalmer52 Linux - General 4 01-27-2004 04:05 PM
You don't have permission to access / on this server jaydave Linux - Networking 1 03-15-2003 06:11 AM


All times are GMT -5. The time now is 11:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration