I'm having nightly emails at 00:00 regarding magic spam trying to rotate its log files:
Code: Select all
mv: cannot move `/var/log/magicspam/mslog' to `/var/log/magicspam/mslog.1': Permission denied
Code: Select all
# ls -la
total 9560
drwxr-xr-x 2 magicspam magicspam 4096 Dec 4 11:08 .
drwxr-xr-x 23 root root 4096 Dec 4 06:12 ..
-rw-r--r-- 1 magicspam magicspam 500 Nov 30 23:59 .counter.dat.11
-rw-r--r-- 1 magicspam magicspam 500 Dec 4 11:12 .counter.dat.12
-rw-r--r-- 1 magicspam magicspam 3515 Dec 4 11:12 mslog
-rw-r--r-- 1 magicspam magicspam 4570201 Dec 4 11:07 mslog.1
-rw-r--r-- 1 magicspam magicspam 5166520 Dec 1 09:34 mslog.2
Code: Select all
Cron <qmaild@xxxxxx> /usr/share/magicspam/bin/rotate_logs /var/log/magicspam/mslog
Should this task be running as qmaild? Is there anything else i should be looking at?
Thanks