I am trying to access a file created by dumpcap application in ubuntu via Apache server. But it shows an error that 'Permission denied'.
After checking I found that the files are creating by the following permission mode 'rw-------'.
I tried the below ways, but could not solve the issue.
1. Set directory in dumpcap in which www-data user has access, but still all files are creating with this permission 'rw-------'.
2. Set all permissions to its parent directory recursively by the following command chmod -R 777 directory, but files creating in it are with the older permission .
Please can anyone suggest a way to get a solution for this?
dumpcap
command yourself manually or is it automated?