You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by mike <mi...@topstexas.com> on 2004/03/26 18:37:02 UTC
Bayes changing files
Why do the owners of _toks, _seen and _journal keep changing along with
the read and write ability to same?
And why don't I have a bayes_messagecount file. Is _journal taking its
place?
What did I do wrong? Run sa_learn as root?
Thanks ahead. I looked through the wiki and found nothing.
Re: Bayes changing files
Posted by John Hardin <jo...@aproposretail.com>.
On Fri, 2004-03-26 at 19:12, David B Funk wrote:
> On Fri, 26 Mar 2004, John Hardin wrote:
>
> > On Fri, 2004-03-26 at 13:54, mike wrote:
> > > >bayes_file_mode 0777
> >
> > <hot_button>
> > Try "bayes_file_mode 0666" instead.
> > </hot_button>
>
> Um, John have you actually -read- the SA conf documentation?
> (Me thinks not). The mode of 0777 is CORRECT, 0666 is NOT.
> See:
>
> bayes_file_mode (default: 0700)
> The file mode bits used for the Bayesian filtering database files.
>
> Make sure you specify this using the 'x' mode bits set, as it may
> also be used to create directories. However, if a file is
> created, the resulting file will not have any execute bits set
> (the umask is set to 111).
>
> Now go apologise to Kris, and check up on things before you
> go flying off the handle next time.
Mea culpa.
I'm sorry. The only excuse I can provide is dealing with people in the
habit of running "chmod 777 *" as the first step in troubleshooting has
me a bit twitchy... :)
--
John Hardin KA7OHZ
Internal Systems Administrator/Guru voice: (425) 672-1304
Apropos Retail Management Systems, Inc. fax: (425) 672-0192
-----------------------------------------------------------------------
Failure to plan ahead on someone else's part does not constitute an
emergency on my part.
- David W. Barts in a.s.r
-----------------------------------------------------------------------
6 days until Daylight Savings Time begins - Spring Forward
Re: Bayes changing files
Posted by David B Funk <db...@engineering.uiowa.edu>.
On Fri, 26 Mar 2004, John Hardin wrote:
> On Fri, 2004-03-26 at 13:54, mike wrote:
> > Thanks. looks like that is working.
> >
> > Kris Deugau wrote:
> >
> > >bayes_file_mode 0777
>
>
> <hot_button>
>
> They bayes database files are neither directories nor executables; they
> do not need execute permissions.
>
> Try "bayes_file_mode 0666" instead.
>
> </hot_button>
Um, John have you actually -read- the SA conf documentation?
(Me thinks not). The mode of 0777 is CORRECT, 0666 is NOT.
See:
bayes_file_mode (default: 0700)
The file mode bits used for the Bayesian filtering database files.
Make sure you specify this using the 'x' mode bits set, as it may
also be used to create directories. However, if a file is
created, the resulting file will not have any execute bits set
(the umask is set to 111).
Now go apologise to Kris, and check up on things before you
go flying off the handle next time.
--
Dave Funk University of Iowa
<dbfunk (at) engineering.uiowa.edu> College of Engineering
319/335-5751 FAX: 319/384-0549 1256 Seamans Center
Sys_admin/Postmaster/cell_admin Iowa City, IA 52242-1527
#include <std_disclaimer.h>
Better is not better, 'standard' is better. B{
Re: Bayes changing files
Posted by John Hardin <jo...@aproposretail.com>.
On Fri, 2004-03-26 at 13:54, mike wrote:
> Thanks. looks like that is working.
>
> Kris Deugau wrote:
>
> >bayes_file_mode 0777
<hot_button>
They bayes database files are neither directories nor executables; they
do not need execute permissions.
Try "bayes_file_mode 0666" instead.
</hot_button>
--
John Hardin KA7OHZ
Internal Systems Administrator/Guru voice: (425) 672-1304
Apropos Retail Management Systems, Inc. fax: (425) 672-0192
-----------------------------------------------------------------------
Failure to plan ahead on someone else's part does not constitute an
emergency on my part.
- David W. Barts in a.s.r
-----------------------------------------------------------------------
10 days until Daylight Savings Time begins - Spring Forward
Re: Bayes changing files
Posted by mike <mi...@topstexas.com>.
Thanks. looks like that is working.
Kris Deugau wrote:
>mike wrote:
>
>
>>Why do the owners of _toks, _seen and _journal keep changing along
>>with the read and write ability to same?
>>
>>
>
>If you're running a global Bayes, the ownership changes are normal and
>expected.
>
>However, to prevent access issues (especially after running sa-learn as
>root), you'll need:
>
>bayes_file_mode 0777
>
>-kgd
>
>
Re: Bayes changing files
Posted by Kris Deugau <kd...@webhart.net>.
mike wrote:
> Why do the owners of _toks, _seen and _journal keep changing along
> with the read and write ability to same?
If you're running a global Bayes, the ownership changes are normal and
expected.
However, to prevent access issues (especially after running sa-learn as
root), you'll need:
bayes_file_mode 0777
somewhere in your global SA config. (I've reserved local.cf for this
type of option as well as simple score changes for default rules.)
Aside from the occasional message which seems to be missing a Bayes
score, this has been working fine for me since I set up 2.5x here.
-kgd
--
"Sendmail administration is not black magic. There are legitimate
technical reasons why it requires the sacrificing of a live chicken."
- Unknown
Re: Bayes changing files
Posted by Theo Van Dinter <fe...@kluge.net>.
On Fri, Mar 26, 2004 at 11:37:02AM -0600, mike wrote:
> And why don't I have a bayes_messagecount file. Is _journal taking its
> place?
msgcount was a 2.5x ism, it's gone in 2.6x. the journal hasn't changed...
--
Randomly Generated Tagline:
It says it's for dogs, but she can't read.
-- Homer Simpson
Simpson's Roasting on an Open Fire