-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetch_report : failed to open stream #123
Comments
The script says that there is no access to the configuration file. Please show or check the permissions to /usr/local/share/dmarc-srg/config/conf.php |
See also my other issue: ls -slah config/ So regardless if I am root or www-data I can access conf.php (not writable by anyone) and /var/spool/dmarc-srg/ |
I just removed read permissions from my config file and got the exact same error.
I think you run the script under another user that does not have enough privileges. |
Try |
Nope. It is a cronjob, but ... I just noticed I ran it as user 'dmarcparser' which obviously has no access. Safer but more complex this way. |
I think it is ok now. With 0440 and group dmarcparser. Is owner www-data required? |
I run all my scripts from the utils directory via cron under the www-data user with no extra users/groups and no extra permissions. But this approach will not work for those who do not use the web interface. |
No, that's not required. It is enough for it to have read access to conf.php |
I'll add this later or accept a PR from you if you'd like to offer edits. |
This error occurs regardless if owner is root or www-data. Running Debian stable. PHP version: 8.2.7
The text was updated successfully, but these errors were encountered: