• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: cocoa-dev digest, Vol 2 #12 - 2 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Setting global umask
      • From: Rainer Brockerhoff <email@hidden>
  • Prev by Date: Cocoa programming with Mac OS X
  • Next by Date: Get screen size
  • Previous by thread: Re: Cocoa programming with Mac OS X
  • Next by thread: Re: Setting global umask
  • Index(es):
    • Date
    • Thread