/etc/cron.daily/spamassassin calls sa-update with potentially incorrect umask
ubuntu 14.04.1 LTS
This report has to do with a problem between the interaction of the spamassassin and amavisd-new packages, but the problem is with /etc/cron.
su - debian-spamd -c "sa-update --gpghomedir /var/lib/
Since su is invoked with the "-" option, sa-update executes with the default umask of user debian-spamd. In my case that is 007, causing the updated rules , i.e. /var/lib/
It appears someone attempted to correct this by adding the line:
immediately above the call to su mentioned above. This in ineffectual however due to su being called with "-". A fix is to change the above su call to this line:
su - debian-spamd -c "umask 022; sa-update --gpghomedir /var/lib/
A file with the output of 'ubuntu-bug --save=/tmp/sa-bug spamassassin' is attached.
|Roger Cornelius (rac-3) wrote : Re: [Bug 1373560] Re: /etc/cron.daily/spamassassin calls sa-update with potentially incorrect umask||#3|