Place the following line in a file in the directory /etc/cron.d (works in Suse linux, and probably all current linux distros)

/etc/cron.d/dspam_cleanups:
-- startfile
0 0 * * * dspam /usr/sbin/dspam_logrotate -a 30 -d /var/lib/dspam/data
-- endfile

the first dspam on that line tells crontab to run that command as the user "dspam"

Derk.


David Rees wrote:
Since upgrading to 3.8.0 I've had problems with dspam_logrotate
changing permissions of the users's log files which is preventing
update of the logs when mail is delivered

I'm using postfix's mailbox_command to deliver mail, so dspam gets run
as the user, so the log files need to be owned by the user. After
running dspam_logrotate, the files are owned by root.

Anyone have a better way to handle this than by hacking a script
together to maintain the proper permissions and log file ownership?

-Dave



--
O'Brien design / Crolox
------------------------
email: [EMAIL PROTECTED]
Telefoon: 053-7074941
Fax:      053-7074942
website: http://www.crolox.nl/
Post: Postbus 112
     7500 AC Enschede
------------------------
Alle prijzen zijn ex. BTW tenzij anders gemeld.

Reply via email to