403 error when symlink over to another disk

This is a discussion on 403 error when symlink over to another disk within the Linux Web Servers forums, part of the Web Server and Related Forums category; I've looked everywhere for a solution to this. I'm trying to move most of my web site to ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-19-2005
Sandy
 
Posts: n/a
Default 403 error when symlink over to another disk

I've looked everywhere for a solution to this.

I'm trying to move most of my web site to another disk than / (they're
now in /var/www/html/)

I keep getting forbidden 403 pages when i try to access them.

permissoins appear to be correct:
># ls -Z /mnt/sandy1

drwx------ root root
lost+found
drwxr-xr-x root root system_u:object_r:httpd_sys_content_t
pub_html
drwxr-xr-x root root root:object_r:file_t users

(I want pub_html to be accessed)

I've tried both "ln -s" from DocumentRoot and Alias from the
httpd.conf. I assume that i'm being redirected, but have something
wrong with the permissions in pub_html.

I've also added the following to httpd.conf

<Directory "/mnt/sandy1/pub_html">
Options Indexes FollowSymLinks
AllowOverride None

Order allow,deny
Allow from all
</Directory>


I notice that there is no selinux permissions for the actual mount
point /mnt/sandy1 ... Perhaps I need to specify selinux permissions for
the hard disk somehow?

Thanks,
Sandy

  #2 (permalink)  
Old 08-19-2005
Grant Coady
 
Posts: n/a
Default Re: 403 error when symlink over to another disk

On 18 Aug 2005 20:57:03 -0700, "Sandy" <xandey@gmail.com> wrote:

>I've looked everywhere for a solution to this.
>
>I'm trying to move most of my web site to another disk than / (they're
>now in /var/www/html/)
>
>I keep getting forbidden 403 pages when i try to access them.


Fix permissions. Unix don't care what disks the partitions are on :-p

Grant.

  #3 (permalink)  
Old 08-19-2005
Sandy
 
Posts: n/a
Default Re: 403 error when symlink over to another disk

I think the permissions are correct Grant, could you tell me what i'm
doing wrong

drwxr-xr-x root root system_u:object_r:httpd_sys_content_t
pub_html

  #4 (permalink)  
Old 08-19-2005
Sandy
 
Posts: n/a
Default Re: 403 error when symlink over to another disk

After reading some more about permissoins. I've also checked that all
files in the path have x permissions. And that the directory has 755
permissions and any files in it have 644.

I've also tried moving the target to being owned by a user. But nothing
had any effect.

the log contains the following error message:
[Fri Aug 19 11:45:48 2005] [error] [client 151.197.41.124]
(13)Permission denied: access to /sandy1/ denied

  #5 (permalink)  
Old 08-19-2005
Sandy
 
Posts: n/a
Default Re: 403 error when symlink over to another disk

I'm using FC4, and want this to work with SElinux. I've set the
permissions to what i believe to be the correct ones

system_u:object_r:httpd_sys_content_t

What about the path upto the target of my symlink? I notice that the
mount point doesn't have any SElinux permissions at all, it shows as
blank in ls -lZ

Thanks,
Sandy

  #6 (permalink)  
Old 08-19-2005
Sandy
 
Posts: n/a
Default Re: 403 error when symlink over to another disk

I found the answer. I needed to do the following because something had
happened with my SELinux ... somethings

touch /.autorelabel
reboot

as per http://www.nsa.gov/selinux/list-archive/0502/10358.cfm

Hope this can help someone else.

Sandy

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:11 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0