https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7924

            Bug ID: 7924
           Summary: sa-update cron job fail due to lacks of permissions on
                    create dir
           Product: Spamassassin
           Version: 3.4.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: sa-update
          Assignee: dev@spamassassin.apache.org
          Reporter: jfbache...@free.fr
                CC: jfbache...@free.fr
  Target Milestone: Undefined

Hello ^^)

Got this report from cron.daily today : 

/etc/cron.daily/spamassassin:
mkdir /var/lib/spamassassin/3.004006: Permission denied at /usr/bin/sa-update
line 488.
sa-update failed for unknown reasons.

it appears that the cron job is run as 'spamd' (my case) (or 'debian-spamd')
user and that one have no permissions to write in '/var/lib/spamassassin'
(nornal as this dir has been created by root at the spamassassin installation
time).

it's only a permissions problem, so after researchs on the web I can see that
this problem exists for since some times now, so why it is still present in the
latest version availlable ?

I can manually change the permissions by issuing that command : 

'chown -R spamd:spamd /var/lib/spamassassin'

but that is just a work-around.

It is needed that this be done at spamassassin install time automatically after
the spamd user creation and/or that sa-update would be able to verify the
rights on this directory and be able to modify it when run by the cron job to
prevent that error.

can you tell me how 'sa-update' script must be modified to do this ?

Thanks,
Jeff

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to