mitchellkrogza / nginx-ultimate-bad-bot-blocker

Nginx Block Bad Bots, Spam Referrer Blocker, Vulnerability Scanners, User-Agents, Malware, Adware, Ransomware, Malicious Sites, with anti-DDOS, Wordpress Theme Detector Blocking and Fail2Ban Jail for Repeat Offenders

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] open() "/etc/nginx/botblocker.d/botblocker-nginx-settings.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:191

Danrancan opened this issue · comments

Describe the bug

Permissions issue on Ubuntu 20.04 for Raspberry Pi.

To Reproduce

Install Bad bot blocker on Ubuntu 20.04 Raspberry Pi. Then check the nginx error logs. You will find the following errors:

[emerg] 660938#660938: open() "/etc/nginx/botblocker.d/botblocker-nginx-settings.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:191
[emerg] 666173#666173: open() "/etc/nginx/conf.d/globalblacklist.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:192

Expected behavior

I expect there to be no errror.

the Fix:

sudo chmod 644 /etc/nginx/conf.d/globalblacklist.conf && sudo chmod 644 /etc/nginx/botblocker.d/botblocker-nginx-settings.conf

Changing the permissions of the above corresponding files makes the error go away.

  • Operating System:

  • [X ] Ubuntu Server 20.04 for Raspberrry Pi (aarch64)

  • Specify Exact Version of OS: 20.04.6 LTS (Focal Fossa)

Linux my.server.com 5.4.0-1091-raspi #102-Ubuntu SMP PREEMPT Fri Jul 21 15:19:03 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

nginx/1.25.2

[emerg] 660938#660938: open() "/etc/nginx/botblocker.d/botblocker-nginx-settings.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:191
[emerg] 666173#666173: open() "/etc/nginx/conf.d/globalblacklist.conf" failed (13: Permission denied) in /etc/nginx/nginx.conf:192