spamassassin-dev November 2011 archive
Main Archive Page > Month Archives  > spamassassin-dev archives
spamassassin-dev: [Bug 6709] sa-update: Use umask 022 as default

[Bug 6709] sa-update: Use umask 022 as default and add a --umask option

From: <bugzilla-daemon_at_nospam>
Date: Sun Nov 27 2011 - 17:21:16 GMT

Kevin A. McGrail <> changed:

           What |Removed |Added
             Status|NEW |RESOLVED
                 CC| |
         Resolution| |WONTFIX

--- Comment #1 from Kevin A. McGrail <> 2011-11-27 17:21:16 UTC ---
(In reply to comment #0)
> Using a global umask of 077 and running sa-update results into rules/dirs to be
> u=rwx,g=,o=. I found a old debian bug which seems to be related
> .
> Not sure if this has ever been forwarded to you guys...
> I think sa-update should use by default a umask of 022 and also provide a
> option to set a custom umask by using e.g. --umask 077.
> I guess in the most cases rules/dirs should have 022.

I would argue this is an OS dependent issue and is a downstream issue.
sa-update does not currently change the umask as best I can tell.

So if you want a umask of 022, set your os umask to 022 globally or for your

Or, if needed write a wrapper script to launch sa-update after setting a system
appropriate umask.

This might be a good thing to document but I don't see it as a bug for

Out of curiosity, what was the workaround in debian? I couldn't find anything
really pointing to the fix. I'm guessing it's what I described above as shown
in trunk in debian/spamassassin.cron.daily which sets umask 022 before calling

So a simple script for you that does the same would likely be in order.

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