Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SpamAssassin: users

permission denied error keeps coming back

 

 

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded


tonj at freeuk

Feb 1, 2010, 2:35 PM

Post #1 of 6 (961 views)
Permalink
permission denied error keeps coming back

ever since I did a bayes learn on 200 spams and 200 hams a couple of days ago
I've had the following error appearing in my mail log:
'mimedefang-multiplexor[13951]: Slave 0 stderr: bayes: locker: safe_lock:
cannot create tmp lockfile
/var/lib/spamassassin/bayes/bayes.lock.home.svr5.13952 for
/var/lib/spamassassin/bayes/bayes.lock: Permission denied'
I did a restart of SA and the problem went away for about 24 hours, but now
it's back again. I did a search on google about this but many of the 'cures'
already exist in my system. I'm also using mimedefang but I don't know if
that's connected to this problem.
is this an SA issue or a mimedfeang issue? what causes this error? and is
there a fix for this? thanks for any advice.
--
View this message in context: http://old.nabble.com/permission-denied-error-keeps-coming-back-tp27412626p27412626.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Bowie_Bailey at BUC

Feb 2, 2010, 7:42 AM

Post #2 of 6 (903 views)
Permalink
Re: permission denied error keeps coming back [In reply to]

tonjg wrote:
> ever since I did a bayes learn on 200 spams and 200 hams a couple of days ago
> I've had the following error appearing in my mail log:
> 'mimedefang-multiplexor[13951]: Slave 0 stderr: bayes: locker: safe_lock:
> cannot create tmp lockfile
> /var/lib/spamassassin/bayes/bayes.lock.home.svr5.13952 for
> /var/lib/spamassassin/bayes/bayes.lock: Permission denied'
> I did a restart of SA and the problem went away for about 24 hours, but now
> it's back again. I did a search on google about this but many of the 'cures'
> already exist in my system. I'm also using mimedefang but I don't know if
> that's connected to this problem.
> is this an SA issue or a mimedfeang issue? what causes this error? and is
> there a fix for this? thanks for any advice.
>

"Permission denied" usually means you have a problem with ... (drumroll
please) ... file or directory permissions. :)

This can be caused by running sa-learn as one user (such as root), and
then trying to access the database as another user. Check the
permissions on the /var/lib/spamassassin/bayes directory and contents.
Make sure the mimedefang user can read and write to the directory as
well as all of the files.

--
Bowie


tonj at freeuk

Feb 2, 2010, 7:54 AM

Post #3 of 6 (904 views)
Permalink
Re: permission denied error keeps coming back [In reply to]

Bowie Bailey wrote:
> ...Check the
> permissions on the /var/lib/spamassassin/bayes directory and contents.
> Make sure the mimedefang user can read and write to the directory as
> well as all of the files.

ok thanks for your response bowie. I looked at the
var/lib/spamassassin/bayes directory in midnight commander and changed the
permission of the folder to include 'write by others'. Hopefully that might
solve the error so I'll wait and see...

--
View this message in context: http://old.nabble.com/permission-denied-error-keeps-coming-back-tp27412626p27422730.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


tonj at freeuk

Feb 3, 2010, 5:13 PM

Post #4 of 6 (878 views)
Permalink
Re: permission denied error keeps coming back [In reply to]

Bowie Bailey wrote:
>
> Check the permissions on the /var/lib/spamassassin/bayes directory and
> contents.
> Make sure the mimedefang user can read and write to the directory as
> well as all of the files.

since I edited the permissions (my previous post) the original error has
gone but is now replaced by another:
'mimedefang-multiplexor[7179]: Slave 0 stderr: bayes: cannot write to
/var/lib/spamassassin/bayes/bayes_journal, bayes db update ignored:
Permission denied'
In /var/lib/spamassassin/bayes/ there is no bayes_journal. Am I supposed to
create one? thanks for any further advice.
--
View this message in context: http://old.nabble.com/permission-denied-error-keeps-coming-back-tp27412626p27446244.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


dbfunk at engineering

Feb 3, 2010, 6:22 PM

Post #5 of 6 (873 views)
Permalink
Re: permission denied error keeps coming back [In reply to]

On Wed, 3 Feb 2010, tonjg wrote:

> Bowie Bailey wrote:
> >
> > Check the permissions on the /var/lib/spamassassin/bayes directory and
> > contents.
> > Make sure the mimedefang user can read and write to the directory as
> > well as all of the files.
>
> since I edited the permissions (my previous post) the original error has
> gone but is now replaced by another:
> 'mimedefang-multiplexor[7179]: Slave 0 stderr: bayes: cannot write to
> /var/lib/spamassassin/bayes/bayes_journal, bayes db update ignored:
> Permission denied'
> In /var/lib/spamassassin/bayes/ there is no bayes_journal. Am I supposed to
> create one? thanks for any further advice.

No you shouldn't create the bayes_journal, the bayes code will do that
(and rename, read, write, & delete those files as it runs).

It sounds like you still havn't pinned down exactly what user-IDs need
read/modify/write access to that directory.
For an experiment, just open the bayes directory up to the world,
keep an eye on it, see what user-IDs are used to create files and
then you'll know who needs access.

Do this, in a shell, as root, execute the command:

chmod 0777 /var/lib/spamassassin/bayes

Then run some tests and see what happens.
Assuming that this is a server which is restricted to administrator types,
it's pretty safe to have that directory world writable. (Now if you've
got hordes of unwashed users on that machine you may have problems. ;)

--
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{


tonj at freeuk

Feb 5, 2010, 11:30 AM

Post #6 of 6 (818 views)
Permalink
Re: permission denied error keeps coming back [In reply to]

David B Funk wrote:
>
> Do this, in a shell, as root, execute the command:
>
> chmod 0777 /var/lib/spamassassin/bayes

David thanks for your help on this. The chmod command has solved the
permission problem. I'm the only user on this server so it shouldn't be too
risky.

--
View this message in context: http://old.nabble.com/permission-denied-error-keeps-coming-back-tp27412626p27472845.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

SpamAssassin users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.