Nicolas Ross
2011-Jun-07 19:43 UTC
[CentOS] daemon user can't acess file while nobody user can.
I have a server where /home is on a nfs. I installed an apache (my compile) server. By default, it runs as daemon. That user can't acces files in /home/*/public_html, while the nobody user can. So if I change my apache config, it now can. /home is : drwxr-xr-x /home/user is : drwxr-xr-x /home/user/public_html is : drwxr-xr-x selinux is disabled. In the error log of apache I get : (13)Permission denied: access to /~user/file.jpg denied I changed the shell for the daemon user so I can diagnose a little bit more, and I cannot get into the user directory. When on a local drive, it's ok. So why is that the daemon user cannot go into the user directory via nfs ?
Bob Hepple
2011-Jun-08 23:48 UTC
[CentOS] daemon user can't acess file while nobody user can.
On Tue, 7 Jun 2011 15:43:28 -0400 "Nicolas Ross" <rossnick-lists at cybercat.ca> wrote:> I have a server where /home is on a nfs. I installed an apache (my compile) > server. By default, it runs as daemon. That user can't acces files in > /home/*/public_html, while the nobody user can. So if I change my apache > config, it now can. > > /home is : drwxr-xr-x > /home/user is : drwxr-xr-x > /home/user/public_html is : drwxr-xr-x > > selinux is disabled. > > In the error log of apache I get : > > (13)Permission denied: access to /~user/file.jpg deniedLooks like httpd is misconfigured and looking in the wrong place: /~user/file.jpg probably should be ~user/file.jpg ... unless it's a typo -- Bob Hepple <bhepple at promptu.com> ph: 07-5584-5908 Fx: 07-5575-9550