I have a problem I couldn't solve so far. I'm using CentOS which provides the apache web files in /var/www/html/
. Now I got some data, which are loaded by another user, to (let's say) /home/user1/files/
.
Every time I want to access those files I get permission denied. Those files and directories (evene parent til root) can be read. (chmod -R o+r /home
)
But I still get this error, as next step I've created a symlink:
/var/www/html/ -> /home/user1/files
but still the same error.
Those are files which are updated every day, so I can't copy them over, and a cronjob would be bad because I need them by their time. Copying creats a new inode. (need always latest file).
I would really appreciate an idea.
yadbo
Copyright Notice:Content Author:「yadbo」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/46533121/centos-apache-cant-access-to-file-in-home-dir