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