Repeating my answer from https://superuser.com/a/1859642/175529, which may be a duplicate of this:
I have not checked which versions of macOS this applies to, but my mac setup script does this:
sudo launchctl config user umask 077
(unfortunately I did not record where I got that from)
To make everything world writable, instead of 077 it would be 000
You can find representations for different sets of permissions at https://wintelguy.com/umask-calc.pl ; in some contexts the numerical representation may require a leading zero
(obligatory warning that making everything world writable is usually a bad idea)