After a recent host update one of my VPS’s, a Debian 6 “Squeeze” container in OpenVZ, started spitting out errors from the logrotate cron like this:

/etc/cron.daily/logrotate:┬ásyslog-ng: Error setting capabilities, capability management disabled; error=‘Operation not permitted’

The solution I found was…

  1. Edit the default syslog-ng file with vi /etc/default/syslog-ng
  2. Uncomment the line #SYSLOGNG_OPTS=“–no-caps”
  3. And then restart the daemon /etc/init.d/syslog-ng restart

No more errors :-)