LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-10-2005, 07:23 PM   #1
SeekAndDestroy
LQ Newbie
 
Registered: Nov 2005
Location: PA, USA
Distribution: Mandrake 10.1
Posts: 11

Rep: Reputation: 0
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.
 
Old 11-10-2005, 08:00 PM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
What do you use for a connection to the server?
 
Old 11-11-2005, 04:46 AM   #3
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
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.?
 
Old 11-11-2005, 10:22 AM   #4
SeekAndDestroy
LQ Newbie
 
Registered: Nov 2005
Location: PA, USA
Distribution: Mandrake 10.1
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 11-11-2005, 12:29 PM   #5
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
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.
 
Old 11-11-2005, 01:00 PM   #6
SeekAndDestroy
LQ Newbie
 
Registered: Nov 2005
Location: PA, USA
Distribution: Mandrake 10.1
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 11-11-2005, 01:45 PM   #7
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
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...?
 
Old 11-11-2005, 07:24 PM   #8
SeekAndDestroy
LQ Newbie
 
Registered: Nov 2005
Location: PA, USA
Distribution: Mandrake 10.1
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
  


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
Access Denied aje Linux - Newbie 7 10-18-2004 09:48 PM
Access denied?? Jaster Linux - Software 9 07-25-2004 08:42 PM
getting access denied , when trying to access camera as normal user bennythepitbull Linux - Hardware 2 11-04-2003 03:30 AM
"Access Denied" to printer and directories shared via Samba Aarstar Linux - Networking 1 03-05-2002 07:38 PM
access denied - but why? Steave Programming 1 08-31-2001 07:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:17 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration