[SATLUG] symbolic links and permissions

Aaron Hackney techgeeks at aaronhackney.com
Sun Jan 25 11:49:12 CST 2009

Charles Hogan wrote:
> Bruce Dubbs wrote:
>> Geoff wrote:
>>> Curious problem.
>>> My host drive on my server that I do -not- have physical access to 
>>> (it's
>>> in San Antonio and I'm in Houston) is running low on space.
>>> One directory in /home, I found, was holding 5g.  There are 2 other
>>> volumes in the machine, with plenty of space available.
>>> So, I figured 'hmmm... mv the files to the larger volume, create a
>>> symlink from /home/{username}/public_html/directory to
>>> /larger_drive/directory
It's been a while since I've been under the hood in apache, but isn't 
there a directive to disallow following symbolic links?


>>> as root, in the cli, the symlink worked.  Checking it online, I 
>>> continue
>>> to get "Access forbidden".
>> Make sure apache has read and execute permissions for *all* 
>> directories in the path to the files in question ( i.e. 
>> /larger_drive/directory/subdir etc.).
>>   -- Bruce
> You may also want to check in your httpd.conf to make sure that apache 
> has access to /larger_drive/directory/ and isn't blocked by a directve 
> similar to the following:
> <Directory />
>   Options -All -Multiviews
>   AllowOverride None
>   <IfModule mod_access.c>
>     Order deny,allow
>     Deny from all
>   </IfModule>
> </Directory>

Aaron Hackney
(210) 325-2196
Return e-mail responses to aaron at aaronhackney.com
As this e-mail address is not checked!

More information about the SATLUG mailing list