Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've seen this thread posted in here before, but I seem not to be able to find a solution in previous threads.
I have loaded some website files onto my Fedora 6 server via a floppy disk from my windows machine. The files are loaded into /var/www/html/ and into some sub directories from there. When trying to access certain files I receive a 403 Forbidden message telling me that I do not have permission to access this file on this server.
I have set -rwxr-xr-x permissions to all files in that directory and all sub directories therein. I have .swf, .php, .html, and .pdf files in there. Other files of the same format in the same directories load correctly, but a few have forbidden access. The same files are always the culprits. There are several of them giving me this problem, both in the base level directory and the sub directories.
I am running Apache. I have all sorts of index file possibilities configured in httpd.conf.
From everything I have seen, /var/www/html/ is the default directory in which website files should reside.
Every web tutorial I have gone over, as well as my Red Hat Linux Bible (which is rather comprehensive) tells me that this is the default directory. I don't even have a directory called "apache2" or "htdocs". Thus, I doubt that this could be a problem.
That was my exact problem. Thank you very much for your help.
For anyone else who may have the problem, here was the deal:
Under some SELinux policy, any files moved from one directory to another maintain the properties of that directory from which they were moved, while those copied to a new directory inherit the properties of the new directory to which they are copied. So the thing to do is copy, not move.
In my case, moving the files made my files inaccessible to the web user. Upon copying them freshly to my directory, they were accessible.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.