LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 07-24-2006, 05:34 AM   #1
radone
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Rep: Reputation: 0
Question permission problem - "You don't have permission to access"


On my server I am trying to configure httpd server to access /home/test/directory:

Code:
Alias /test/ "/home/test/"
<Directory "/home/test">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

This works perfectly. htttp://myserver/test3/ shows list of directory.

Now I have another directory:

Code:
Alias /test3/ "/home/test3/"
<Directory "/home/test3">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
after restarting of server
Code:
/sbin/service httpd restart
I got on address: htttp://myserver/test3/
You don't have permission to access /test3/ on this server.

Code:
[root@localhost home]# ls -Al
drwxr-xr-x  2 root     root     4096 Jul 21 12:15 test
drwxr-xr-x  2 root     root     4096 Jul 21 12:27 test3

./test:
total 12
-rw-r--r-- 1 root root 4872 Nov 20  2004 ahoj.ico

./test3:
total 12
-rw-r--r-- 1 root root 4872 Nov 20  2004 ahoj.ico
/var/log/httpd/error_log
Code:
[error] [client xxxxxxx] (13)Permission denied: cannot read directory for multi: /home/test3/
Please, could anyone point me?
I am totaly desperate about this. What is the reason of this troubles? Do I need to restart something?
 
Old 07-24-2006, 07:08 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 7,514
Blog Entries: 1

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
Hi,

One thing I can come up with:

Is the second Alias definition (Alias /test3/ "/home/test3/") placed inside the <IfModule mod_alias.c> / </IfModule> section?

Hope this helps.
 
Old 07-24-2006, 09:31 AM   #3
radone
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thumbs up

the problem was with so called SElinux:

Code:
/usr/bin/chcon -R -u user_u -r object_r -t httpd_config_t "/home/test3"
gave the permission for apache.
 
Old 07-24-2006, 10:23 AM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 110Reputation: 110
Gotta love SELinux... IMHO, more headache than it's worth.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
Eclipse SDK v3.0 running problem: "Permission denied" AlexDunnCpp Linux - Newbie 1 08-03-2004 11:45 AM
"No permission to access" linux box (Samba) TheOneAndOnlySM Linux - Software 3 03-21-2004 04:57 PM
Apache gives "You don't have permission to access..." paulvl Linux - Security 2 11-23-2003 03:46 PM
Can't access mounted NFS directory: "permission denied" SparceMatrix Linux - General 6 03-08-2003 01:36 PM


All times are GMT -5. The time now is 11:34 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
Open Source Consulting | Domain Registration