Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-10-2005, 07:23 PM
|
#1
|
LQ Newbie
Registered: Nov 2005
Location: PA, USA
Distribution: Mandrake 10.1
Posts: 11
Rep:
|
access denied to directories
whenever i try to go to a directory on my server i have hosted on mandrake linux 10.1 it always says forbidden. anyone know how to change that? there has to be a configuration file somewhere but i cant seem to find it.
|
|
|
11-10-2005, 08:00 PM
|
#2
|
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666
Rep:
|
What do you use for a connection to the server?
|
|
|
11-11-2005, 04:46 AM
|
#3
|
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284
Rep:
|
The first + most obvious is to check which user you are attempting to access the directories with and do they have permissions to list the folder contents? And as Ygrex asked, how are you connecting - NFS mount, FTP, ssh, etc.?
|
|
|
11-11-2005, 10:22 AM
|
#4
|
LQ Newbie
Registered: Nov 2005
Location: PA, USA
Distribution: Mandrake 10.1
Posts: 11
Original Poster
Rep:
|
im using apache 2.0 and i made sure the write permissions were 777 on all the folders
heres an example: http://monkeychildhosting.hn.org/files but if you go to http://monkeychildhosting.hn.org/files/cat-fan.wmv it works so i know its not that everything is blocked
Last edited by SeekAndDestroy; 11-11-2005 at 10:33 AM.
|
|
|
11-11-2005, 12:29 PM
|
#5
|
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284
Rep:
|
Are you wanting to contents of that directory blocked then? You seem to contradict yourself - setting permissions on the folder to 777 makes it available to everyone, then you seem surprised you can access files across the web, almost as if you want the folder blocking
If you want to deny access across the Internet, you need to look at .htaccess files or add the directory options to your httpd.conf . This tutorial from the Apache website may help - http://httpd.apache.org/docs/1.3/howto/htaccess.html - otherwise let us know what you're trying to achieve.
|
|
|
11-11-2005, 01:00 PM
|
#6
|
LQ Newbie
Registered: Nov 2005
Location: PA, USA
Distribution: Mandrake 10.1
Posts: 11
Original Poster
Rep:
|
yeah, thats why im confused. if you click those links i posted it says access denied, how ever, i did set the folders to 777.
|
|
|
11-11-2005, 01:45 PM
|
#7
|
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284
Rep:
|
Okay, so from your webserver, go to the directory containing your files, and type "ls -la" and past the results back here so we can the permissions of the files themselves. When it says access denied, this isn't some kind of content filtering preventing you from accessing particular mime types is it...?
|
|
|
11-11-2005, 07:24 PM
|
#8
|
LQ Newbie
Registered: Nov 2005
Location: PA, USA
Distribution: Mandrake 10.1
Posts: 11
Original Poster
Rep:
|
ok, i did that and heres the results
http://monkeychildhosting.hn.org/files/snapshot1.png
http://monkeychildhosting.hn.org/files/snapshot2.png
i did the folder above it too, just incase. and that is all the info that came up, my window was just big enough to get it all in
and when you say When it says access denied, this isn't some kind of content filtering preventing you from accessing particular mime types is it...? what do you mean by that. im new to all of this, ive olny had this server working for the most part for about 2-3 days now
Last edited by SeekAndDestroy; 11-11-2005 at 07:28 PM.
|
|
|
All times are GMT -5. The time now is 08:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|