RE: cocoa-dev digest, Vol 2 #12 - 2 msgs
RE: cocoa-dev digest, Vol 2 #12 - 2 msgs
- Subject: RE: cocoa-dev digest, Vol 2 #12 - 2 msgs
- From: "Phil Barrett" <email@hidden>
- Date: Mon, 14 Jan 2002 09:49:07 -0000
Jody wrote:
>
in cocoa-dev digest vol 2 #11, rainer wrote:
>
> I need to set the global umask to something other than "022" to get
>
> custom default permissions for files created by applications and the
>
> Finder.
>
>
>
> I've been unable to find the location for the default umask anywhere in
>
> "the user's preferences". A search on Google and in the ADC docs also
>
> failed. Any hints?
>
>
typically, if it's set at all, it would be in one of the user's "dot"
>
files, i.e., ".login", ".tcshrc", ".cshrc", etc.
Yes, but these don't get read by the Finder and applications started from
the Finder or the Dock, so you're stuck with 022.
According to the old NeXT man page for loginwindow, it read NSUmask from
somewhere - and NSUmask is still referenced by the OS X loginwindow today:
% strings /System/Library/CoreServices/loginwindow.app/loginwindow | grep -i
umask
NSUmask
I have an open issue with Apple about this. Here's a quote from them:
>
> This is not currently working, the umask in effect for all users
>
> is 022 and there is no way to change it.
The only global workaround I can think of is to use the ability of
loginwindow to launch a different application than Finder to instead run a
script that sets umask and then launches Finder.
>
and consequently have no default setting anywhere, other than the system
>
default, which seems to be 022, as you said (see also:)
>
>
/usr/share/init/tcsh/environment
Coincidence. This is the default for tcsh - but this file isn't read until
you start tcsh in a Terminal window (or remote login).
Phil
--
Phil Barrett - CTO - Cambridge Animation Systems