OSX: HOW TO CHANGE THE GLOBAL UMASK FOR ALL USERS TO 002
--------------------------------------------------------
DESCRIPTION
The 'umask' is what sets the default read/write
permissions for files and folders created by users under
unix.. this includes OSX.
Under OSX, it's been a strange issue because the
umask seems to be at a default of 022 (rw-r--r--) for all guis,
when more often then not, a umask of 002 is desired (rw-rw-r--).
A umask of 002 allows users in the same group to overwrite
each other's files, so that eg. renders can be handed off
from one person to another, without getting permission errors
when re-writing out image files.
PROBLEM
Adding a 'umask 002' to the user's ~/.cshrc or ~/.profile
does nothing, as those files are not referenced by the GUI
environment (eg. the Finder, or any programs invoked from
desktop shortcuts or finder).
Only terminal windows (which invoke csh/tcsh/bash shells)
reference these files.
So the question is, where can you put a umask setting
so that it affects the users?
SOLUTION
1) Edit the file /Library/Preferences/.GlobalPreferences.plist
2) Add the lines:
<key>NSUmask</key>
<integer>2</integer>
(thanks to the Daniel Flynn at World Wrestling Entertainment)
|