Re: [Lxr-general] apache (httpd) on f8 vs. fc6 running LXR
Brought to you by:
ajlittoz
From: Gene Sm(i)t. <gd...@gm...> - 2008-02-25 01:04:35
|
Malcolm Box wrote, On 02/19/2008 05:27 AM: > On Feb 19, 2008 2:30 AM, Gene Sm(i)th <gd...@gm...> wrote: >> To answer my own post, the reason was because the files accessed by lxr >> were in my home directory with permission 700 and apache could not go >> there. Pretty simple actually but not much hint from apache or lxr as to >> what the problem was. Just was looking at the /home/me/lxr-file/ >> directory which was set to 755, I think, but was was overriden by the >> /home/me/ setting of 700. (Didn't realize the permission are inherited >> but I guess they are.) > > Permissions aren't inherited, but apache needs to be able to traverse > the whole path. That requires permissions for apache on each > directory on the path. Otherwise the kernel will not allow the file > to be read. > > So you need apache to have permissions on /home, /home/me and /home/lxr-file > > Malcolm I created a user/group "test" and within test account I was unable to cat files or list files in /home/me/lxr-file (set to 755) unless I changed /home/me to 705 so permission seemed to be inherited for this simple case (unless I am missing something here). By the way, thanks for your excellent work on LXR. I use it constantly! -gene |