LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   You don't have permission to access myFile.MP4 on this server. (https://www.linuxquestions.org/questions/linux-newbie-8/you-dont-have-permission-to-access-myfile-mp4-on-this-server-585746/)

xpucto 09-19-2007 04:14 AM

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.

unSpawn 09-20-2007 12:37 AM

What do the Apache logs tell you?

xpucto 09-21-2007 02:38 AM

error_log just says
Quote:

(13)Permission denied: access to /myDirectory/myFile.MP4 denied
it doesnīt help much...

unSpawn 09-23-2007 04:14 AM

Is SELinux active? Anything about that in syslog or any other audit log? Checked the security context ('ls' with the "-Z" flag)?

xpucto 09-24-2007 04:45 AM

Quote:

Originally Posted by unSpawn (Post 2900857)
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_u:object_r:httpd_sys_content_t
and the one I can read are schown like that:
Quote:

rw-r--r-- apache apache user_u:object_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.


All times are GMT -5. The time now is 06:06 AM.