You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by claym <cl...@pfd.net> on 2007/11/16 15:59:18 UTC
cron job sa-compile: chmod:Permission denied
I'm having a weird issue while running sa-compile via a cron job.
This is the command I'm issuing:
PATH=/usr/local/bin:/usr/bin:/usr/src/bin; sa-compile
This is the error:
/usr/local/bin/perl5.8.8 Makefile.PL
PREFIX=/tmp/.spamassassin26441Bq6xJUtmp/ignored
INSTALLSITEARCH=/var/db/spamassassin/compiled/3.002003
Writing Makefile for Mail::SpamAssassin::CompiledRegexps::body_0
make
chmod:Permission denied
*** Error code 1
Stop in
/tmp/.spamassassin26441Bq6xJUtmp/Mail-SpamAssassin-CompiledRegexps-body_0.
command failed! at /usr/local/bin/sa-compile line 279.
I get past the re2c error most people hit, so I'm not sure what's going on
here. I've even tried running it as root.
Any ideas? Thanks!
--
View this message in context: http://www.nabble.com/cron-job-sa-compile%3A-chmod%3APermission-denied-tf4821728.html#a13794596
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
Re: cron job sa-compile: chmod:Permission denied
Posted by claym <cl...@pfd.net>.
Duane Hill-2 wrote:
>
> On Fri, 16 Nov 2007 06:59:18 -0800 (PST)
> claym <cl...@pfd.net> wrote:
>
> Here, I'm running on FreeBSD 6.2 and the crontab for the user root
> looks like:
>
> PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
> ...
> @daily /usr/local/etc/mail/spamassassin/sa-rules-update.sh
>
> In sa-rules-update.sh I have:
>
> /usr/local/bin/sa-update
> /usr/local/bin/sa-compile
> /usr/local/etc/rc.d/sa-spamd.sh restart
>
> Perhaps the user your cron is running doesn't have permission to
> something.
>
> ------
> _|_
> (_| |
>
>
I put all 3 commands in a single script and ran it instead of doing it
separately, and it works.
Huh.
Anyway, thanks!
--
View this message in context: http://www.nabble.com/cron-job-sa-compile%3A-chmod%3APermission-denied-tf4821728.html#a13802082
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
Re: cron job sa-compile: chmod:Permission denied
Posted by Duane Hill <d....@yournetplus.com>.
On Fri, 16 Nov 2007 06:59:18 -0800 (PST)
claym <cl...@pfd.net> wrote:
>
> I'm having a weird issue while running sa-compile via a cron job.
>
> This is the command I'm issuing:
>
> PATH=/usr/local/bin:/usr/bin:/usr/src/bin; sa-compile
>
> This is the error:
>
> /usr/local/bin/perl5.8.8 Makefile.PL
> PREFIX=/tmp/.spamassassin26441Bq6xJUtmp/ignored
> INSTALLSITEARCH=/var/db/spamassassin/compiled/3.002003
> Writing Makefile for Mail::SpamAssassin::CompiledRegexps::body_0
> make
> chmod:Permission denied
> *** Error code 1
>
> Stop in
> /tmp/.spamassassin26441Bq6xJUtmp/Mail-SpamAssassin-CompiledRegexps-body_0.
> command failed! at /usr/local/bin/sa-compile line 279.
>
>
>
> I get past the re2c error most people hit, so I'm not sure what's
> going on here. I've even tried running it as root.
>
> Any ideas? Thanks!
Here, I'm running on FreeBSD 6.2 and the crontab for the user root
looks like:
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
...
@daily /usr/local/etc/mail/spamassassin/sa-rules-update.sh
In sa-rules-update.sh I have:
/usr/local/bin/sa-update
/usr/local/bin/sa-compile
/usr/local/etc/rc.d/sa-spamd.sh restart
Perhaps the user your cron is running doesn't have permission to
something.
------
_|_
(_| |