I'm trying to run it as user root but I'm still getting these error
messages:

************
[EMAIL PROTECTED] mail]# /usr/local/sbin/rules_du_jour
mkdir: cannot create directory `/etc/mail/spamassasin/RulesDuJour': No
such file or directory
/usr/local/sbin/rules_du_jour: line 675: cd:
/etc/mail/spamassasin/RulesDuJour: No such file or directory
***NOTICE***: Cannot write to /etc/mail/spamassasin.  Are you running as
the correct user?  No rulesets will be checked or updated.
***NOTICE***: Cannot write to /etc/mail/spamassasin/RulesDuJour.  Are
you running as the correct user?  No rulesets will be checked or
updated.
exec: curl -w %{http_code} --compressed -O -R -s -S -z
/etc/mail/spamassasin/RulesDuJour/rules_du_jour
http://sandgnat.com/rdj/rules_du_jour 2>&1
curl_output: 200
Performing preliminary lint (sanity check; does the CURRENT config
lint?).
No files updated; No restart required.


Rules Du Jour Run Summary:RulesDuJour Run Summary on yoursummit.com:

***NOTICE***: Cannot write to /etc/mail/spamassasin.  Are you running as
the correct user?  No rulesets will be checked or updated.

***NOTICE***: Cannot write to /etc/mail/spamassasin/RulesDuJour.  Are
you running as the correct user?  No rulesets will be checked or
updated.
[EMAIL PROTECTED] mail]# /etc/mail/submit.cf: line 528: fileclass: cannot
open '/etc/mail/trusted-users': Group writable directory
**************************




Tracey Gates
Lead Developer
[EMAIL PROTECTED]

1350 South Boulder, Third Floor / Tulsa, OK 74119-3203
Phone 918-663-0991 / Fax 918-663-0840

This communication is intended only for the recipient(s) named above;
may be confidential and/or legally privileged; and, must be treated as
such in accordance with state and federal laws. If you are not the
intended recipient, you are hereby notified that any use of this
communication, or any of its contents, is prohibited. If you have
received this communication in error, please reply to the sender and
then delete the message from your computer system immediately.



-----Original Message-----
From: Matt Kettler [mailto:[EMAIL PROTECTED]
Sent: Monday, November 14, 2005 3:00 PM
To: Tracey Gates
Cc: users@spamassassin.apache.org
Subject: Re: SA Errors on --lint run


Tracey Gates wrote:
> Thanks Matt.
>
> What should the permissions & ownership be to run the Rules Du Jour
> script?  Getting the following:
>
>
>
>     Rules Du Jour Run Summary:RulesDuJour Run Summary on
> yoursummit.com:
>
>     ***NOTICE***: Cannot write to /etc/mail/spamassasin.  Are you
>     running as the correct user?  No rulesets will be checked or
> updated.
>
>     ***NOTICE***: Cannot write to /etc/mail/spamassasin/RulesDuJour.
>     Are you running as the correct user?  No rulesets will be checked
or
>     updated.
>
>
> I have the files set with *root:mail* and *777* for the permissions on

> the /etc/mail/spamassassin & all files and directories under there.
>
>


Depends on how yo're calling RDJ.. if you're running it as root, you
should be fine. However, if you have it in /etc/cron.daily/ then it will
likely run as the user "cron" instead of root.



Reply via email to