[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with Spamassassin since upgrade (permissions)



Oliver Zemann wrote:
> Really no one here who could help me with that?

Probably no one is running amavis-new plus spamassassin plus getting
that message.  I am not.

> I am recieving an error by cron since a couple of weeks. I cant remember
> exactly what was updated, but i am pretty sure it was very related to
> that. Before that update, i never got such emails:

What version of spamassassin are you running?  And amavis-new?

Wheezy Stable?  Jessie Testing?  Or Sid Unstable?

> subject: Cron <amavis@xxx> test -e /usr/sbin/amavisd-new-cronjob && /usr/sbin/amavisd-new-cronjob sa-sync

I am not running amavis-new so some of this will be guessing.

> config: path "/var/lib/spamassassin/3.003002" is inaccessible:
> Permission denied

This is usually due to someone running sa-update as root instead of as
the debian-spamd user.  They run as root.  This creates (or possibly
changes) the ownership to root.  Then the normal run by cron as the
debian-spamd user can't access the files.

> root@xxx:~# ls -lah /var/lib/spamassassin/
> total 24M
> drwxrwx---  6 debian-spamd debian-spamd 4.0K May 21 23:57 .
> drwxr-xr-x 49 root         root         4.0K May  3 17:18 ..
> drwxrwxr-x  3 amavis       debian-spamd 4.0K May  4 18:21 3.003002
> drwx------  2 debian-spamd debian-spamd 4.0K Jan 12 13:37 .pyzor
> drwxrwxr-x  2 spamd        root         4.0K Jan 12 13:15 sa-update-keys
> -rw-rw----  1 debian-spamd debian-spamd  24M May 24 08:02 spamd.log
> drw-rw----  3 debian-spamd debian-spamd 4.0K Jan 12 13:40 users

On my system:

  # ls -lah /var/lib/spamassassin/
  total 24K
  drwxr-xr-x   6 debian-spamd debian-spamd 4.0K Mar  4 09:26 .
  drwxr-xr-x 105 root         root         4.0K May  7 10:34 ..
  drwx------   3 debian-spamd debian-spamd 4.0K Mar  4 09:26 .spamassassin
  drwxrwxr-x   4 debian-spamd debian-spamd 4.0K Apr 19 07:07 3.004000
  drwxr-xr-x   3 debian-spamd debian-spamd 4.0K Mar  4 09:26 compiled
  drwx------   2 debian-spamd debian-spamd 4.0K May 28 18:01 sa-update-keys

Your directories are owned by the incorrect users.  I would start
fixing things there.

> root@xxx:~# ls -lah /var/lib/spamassassin/3.003002/
> total 16K
> drwxrwxr-x 3 amavis       debian-spamd 4.0K May  4 18:21 .
> drwxrwx--- 6 debian-spamd debian-spamd 4.0K May 21 23:57 ..
> -rw-r--r-- 1 amavis       debian-spamd    0 May  4 18:21 languages
> drw-rw---- 2 amavis       debian-spamd 4.0K May  4 18:19 updates_spamassassin_org
> -rw-rw---- 1 amavis       debian-spamd 2.7K Apr 29 20:38 updates_spamassassin_org.cf

On my system:

  # ls -lah /var/lib/spamassassin/3.004000/
  total 24K
  drwxrwxr-x 4 debian-spamd debian-spamd 4.0K Apr 19 07:07 .
  drwxr-xr-x 6 debian-spamd debian-spamd 4.0K Mar  4 09:26 ..
  drwxrwxr-x 2 debian-spamd debian-spamd 4.0K Feb 23 19:01 sought_rules_yerp_org
  -rw-rw-r-- 1 debian-spamd debian-spamd  123 Feb 23 19:01 sought_rules_yerp_org.cf
  drwxrwxr-x 2 debian-spamd debian-spamd 4.0K Apr 19 07:07 updates_spamassassin_org
  -rw-rw-r-- 1 debian-spamd debian-spamd 2.7K Apr 19 07:07 updates_spamassassin_org.cf

> When i execute that command as user amavis (su - amavis), i get the
> exactly same error. Can someone please tell me whats wrong?

I think if you fix the ownership of the files then I think it likely
that your problem will be solved.  If not then please report back.

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: