I've a file in /var/ folder which is created by www-data application. Ownership and permission of the file is,
-rw-r--r-- 1 www-data www-data 74214 Feb 18 17:00 sample.pdf
I tried to access this pdf by using non sudo user.
It gives me the error,
Unable to find file. Error: Failed to open PDF file: /var/myproj/www/sample.pdf
For the sake, I've changed the permission to '
777' and tried to access the same again.
-rwxrwxrwx 1 www-data www-data 74214 Feb 18 17:00 sample.pdf
This time also I'm getting the same error. I have changed that directory permission also to
777. But It gives me the same error why? My ubuntu version is