canadamcpherson
New Pleskian
Hi,
I created a custom filter and jail in Plesk. The logfile is not inside /var/log/. It is inside the /var/www/vhosts/mydomain.com/httpdocs/logs/entries.log. Therefore, the log path is "/var/www/vhosts/*/httpdocs/logs/entries.log"
This is causing the following permission error: f2bmng failed: 2021-04-07 09:30:25,891 fail2ban [2222]: ERROR NOK: (13, 'Permission denied')
I know the issue is about permission because when I copy the entries.log. file into /var/log/, the error disappears and I can enable the jail.
It seems that fail2ban does not have permission to read files inside a domain. How can I resolve this permission issue without compromising the security?
Sincerely,
McPherson
I created a custom filter and jail in Plesk. The logfile is not inside /var/log/. It is inside the /var/www/vhosts/mydomain.com/httpdocs/logs/entries.log. Therefore, the log path is "/var/www/vhosts/*/httpdocs/logs/entries.log"
This is causing the following permission error: f2bmng failed: 2021-04-07 09:30:25,891 fail2ban [2222]: ERROR NOK: (13, 'Permission denied')
I know the issue is about permission because when I copy the entries.log. file into /var/log/, the error disappears and I can enable the jail.
It seems that fail2ban does not have permission to read files inside a domain. How can I resolve this permission issue without compromising the security?
Sincerely,
McPherson
Last edited: