https://wiki.archlinux.org/index.php/Su ... sive_Umask
One workaround is to put
Code: Select all
Defaults umask = 0022
Defaults umask_override
Another thing you can do is set the umask in root's shell profile. This will only work when you invoke an interactive shell with sudo. OTOH you have to be careful about not doing things like 'sudo slapt-get -i ...'
The best solution IMO would be for the package manager to set umask to 0022 before installing anything. I'm not sure though if that would cause problems with some packages (or more likely SBO build scripts). umask 0022 should not mess anything up, but in reality who knows?
For now I'll probably use the sudoers workaround. It would be nice to figure out a more robust solution though.