Here my FuzzyOCR runs with spamd (the daemon of spamassassin)
and the default user that run it is the user spamd

-rw-r--r--  1 spamd spamd 433905 Nov 21 08:51 FuzzyOcr.hashdb

my FuzzyOcr.hashdb is set to user spamd

and all works fine... :)


On 11/20/06, Robert S <[EMAIL PROTECTED]> wrote:
I might add that spamc is called from procmail, so it runs with the
permissions of the user receiving the message.  I should have pointed
this out earlier.

> Make the directory world writeable and remove the databases. New ones will
> be created with the user that spamd runs under. Than you can set the
> permissions straight.

I can see the problem now.  The file is written by username:username
because the primary group in debian is set to "username" - the group
is not "users" as I'd like it to be (as it is on my gentoo box).  I
could fix this up by making "users" the primary group for all users,
but that might cause other problems.  AFAICS I'll need to make the
hash db chmod 666.  Presumably if its not executable it shouldn't be a
security risk??

> And making db files executable does noet seem like such a good idea to me.
> Use  CHMOD 664 or 660.

Point taken.



--
--------------------------------------------------
Thiago LPS
C.E.S.A.R - Administrador de Sistemas
msn: [EMAIL PROTECTED]
0xx 81 8735 2591
--------------------------------------------------

Reply via email to