Hello,
i would like to set up fail2ban in addition to Nextcloud (Docker, v19, x86-64). For this purpose I have set up a Bind Mount on /var/www. When I want to access the log file now, “Permission denied” appears.
What can I do? Best without changing the permissions?
Thanks
Edit: I tried changing the permissions anyway. When I want to display it on the host system, only chmod 777 works, but the permission is reset after every change of the log file by Nextcloud.
Usually fail2ban executed as root, otherwise it could not influence iptables or any other Firewall that you have. In this case there should not be any problem to access any log in a system.
Also check this out: