I am having trouble running a python file as the apache user.
When I run this command:
sudo -u apache /etc/httpd/conf.d/upsell_by_id.py I get this error:
File "/etc/httpd/conf.d/upsell_by_id.py", line 8, in <module>
keyword_groups = pickle.load(open("/home/zumodo/upsell_backup/upsells.pkl", "rb" ))
IOError: [Errno 13] Permission denied: '/home/zumodo/upsell_backup/upsells.pkl'
However, the file in question has the following permissions:
-rwxrwxrwx. 1 skline skline 6.4M Dec 5 08:50 upsells.pkl
I am at a loss as to why the apache user is not allowed to open this file.