I have a website that writes files when necessary. Those files are owned by www-data. I also have my user, which executes an application to gather information from those files. It is written in Python. However, since those files are owned by www-data, my application can't read them, and I have to execute the application as root, which I'd prefer not to do. What can I do to allow my user read the files that www-data create?
EDIT, relative to comments:
-rw-r--r-- 1 ivan www-data 444 2011-07-20 16:34 serverfile1.php
-rw-r--r-- 1 ivan www-data 140 2011-07-20 16:34 serverfile2.php
-rw-r--r-- 1 ivan www-data 478 2011-07-20 16:35 serverfile3.php
-rw-r--r-- 1 www-data www-data 10 2011-07-20 17:41 info1.txt
-rw-r--r-- 1 www-data www-data 21 2011-07-20 17:41 info2.txt
-rw-r--r-- 1 ivan www-data 236 2011-07-20 16:35 serverfile4.php
I still can't read the files info1 and info2 using the user ivan