McDonald, Dan wrote:
> I run sa-update and sa-compile from a cron job at a regular interval.
>         
>    gpg: WARNING: unsafe permissions on homedir 
> `/etc/mail/spamassassin/sa-update-keys'
>    [8641] info: generic: base extraction starting. this can take a while...
>    [8641] info: generic: extracting from rules of type body_0
> 
> It looks like there is a temp directory with stuff in it left over from
> the attempt.
> 
> The logs have nothing useful, just the call in /var/log/cron/info
> Nothing in warnings or errors
> Oct 27 14:35:00 ca CROND[8627]: (root) CMD (/usr/local/sbin/sa-update-cron)
> 
> When I run it by hand, I never have encountered this problem.

It appears you're running it as the wrong user via cron and the
correct user by hand.  Who owns that leftover stuff in the temp
directory?  Who owns /etc/mail/spamassassin/sa-update-keys?  They
should be the same, and the sa-update-keys directory should be
rwx------ for that user (and maybe also owned by that user's primary
group).

Reply via email to