fail2ban and logrotate
This Error showed up in my logrotate cron emails after installing fail2ban.
error: error running non-shared postrotate script for /var/log/
the fail2ban logrotate script is as follows:
/var/log/
weekly
rotate 4
compress
delaycompress
missingok
postrotate
endscript
# If fail2ban runs as non-root it still needs to have write access
# to logfiles.
# create 640 fail2ban adm
create 640 root adm
}
I am guessing that I get the errors because of fail2ban not being ran as a server.
todd@doc:~$ fail2ban-client set logtarget /var/log/
ERROR Unable to contact server. Is it running?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu fail2ban Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Todd Bradshaw
- Solved:
- Last query:
- Last reply: