I have a script and i d like to access to home directories of users in a Linux Environment.
Web root : /var/www/html/ And there are user directories such as : /home/john /home/david etc.
There are files in users home directories. The permissions of user homes belong to the users. eg: /home/david/file.txt user: david group: david
Is it possible to access these files with apache? I assume it s not because of the permission,
Is there a way around this ?
in other words, my php program under /var/www/html/index.php can acccess the files under /home/david/foo.txt
How can i get this done? Thanks.