~% sudo logrotate -f /etc/logrotate.conf error: denyhosts:1 lines must begin with a keyword or a filename (possibly in double quotes) error: denyhosts:2 unexpected text error: denyhosts:3 unexpected text error: denyhosts:4 unexpected text error: denyhosts:5 unexpected text error: denyhosts:prerotate or postrotate without endscript error: found error in file denyhosts, skipping After running dos2unix on /etc/logrotate.d/denyhosts the problem was solved. Reproducible: Always