Solved - Re: Curious symlink problem with Apache -- FC12
Robert Moskowitz
rgm at htt-consult.com
Wed Nov 3 16:23:40 UTC 2010
The problem was permissions at:
[root at homebase /]# ls -ls /media/
total 4
4 drwx------ 6 root root 4096 2010-11-01 09:52
d4ae05a3-c60f-489d-8159-e16c9a271f0b
I changed that from 700 to 755 and now everything works. I kind of
thought that symlink permissions were inherited for the current path,
not the 'real' path. Well now I know...
On 11/03/2010 10:15 AM, Roberto Ragusa wrote:
> James Mckenzie wrote:
>
>> Robert Moskowitz<rgm at htt-consult.com> wrote:
>>
>>
>>> # ls -lsZ
>>> total 8
>>> lrwxrwxrwx root root ? Centos-5.5 ->
>>> /media/d4ae05a3-c60f-489d-8159-e16c9a271f0b/repos/centos/5.5
>>> lrwxrwxrwx root root ? FC12 ->
>>> /var/hda/files/repo/fedora/FC12
>>> -rw-r--r-- root root ? index.html
>>>
>>> selinux is disabled...
>>>
>>>
>> What are the permissions on the original directories? The symlink should pick them up and use them.
>>
>> The previous comment about Apache following symlinks would apply if BOTH directories were unavailable.
>>
> Also check the permission of the entire path.
> For example, what about the permission of /media/d4ae05a3-c60f-489d-8159-e16c9a271f0b?
>
> Try this,as root:
>
> cd /
> su apache
> cd /media
> cd d4ae05a3-c60f-489d-8159-e16c9a271f0b
> cd repos
> cd centos
> cd 5.5
> ls -l
>
> Maybe one of this steps fails when you are user apache.
>
>
More information about the users
mailing list