The 'defaults write' method is probably a good one.
If you like editing files by hand or by script, here's a macosxhints
article that covers a difference in Leopard:
http://www.macosxhints.com/article.php?story=20071207091554360
Quoting the relevant bits of the article, in case the link goes stale:
"Setting NSUmask in Leopard is done differently than in previous
OS X releases (older hints on NSUmask). In 10.5, NSUmask is gone.
To set a default umask (for both shell and GUI apps), edit
/etc/launchd.conf and add this line:
umask 077
..where 077 is the new default umask. If nothing is there, the default
is 022. Note, the /etc/launchd.conf file umask "trick" should work in
Tiger too, but I didn't test it."
Most of you will probably want 'umask 0' for wide open perms (rw-rw-rw-)
or maybe 'umask 2' for wide open perms to just the user + group,
and read only for 'other' (rw-rw--r)
Mathieu Xavier Mauser wrote:
> On 2006-04-18 15:23:48 -0700, Greg Ercolano <erco@(email surpressed)> said:
>
>> Greg Ercolano wrote:
>>> OSX: HOW TO CHANGE THE GLOBAL UMASK FOR ALL USERS TO 002
>>> --------------------------------------------------------
>
> Hi
>
> This is what works for my set up.
>
> 1. For group read-write perms, in the Finder. Use Terminal to set
> globally (all users/same box):
>
> sudo defaults write /Library/Preferences/.GlobalPreferences NSUmask 2
>
> 2. And, in Terminal, to set this for apps launched from the Bash shell:
>
> Put "umask 002" in /etc/profile (with no quotation marks)
|