• 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: Setting global umask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting global umask


  • Subject: Re: Setting global umask
  • From: Rainer Brockerhoff <email@hidden>
  • Date: Mon, 14 Jan 2002 11:34:21 -0200

At 09:49 +0000 14/01/2002, Phil Barrett wrote:
>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.
> >
> > 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've tried setting the NSUmask preference in various loginwindows preferences, defaults, and plists - it's amazing how many there are - but none made any difference in the Finder's behavior.


>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.

I'll file another bug about this, then, to hopefully push the priority up.

Thanks to all who responded!

--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
In their own business even sages err."
http://www.brockerhoff.net/ (updated Jan. 2002)


  • Follow-Ups:
    • Re: Setting global umask
      • From: Ben Hines <email@hidden>
References: 
 >RE: cocoa-dev digest, Vol 2 #12 - 2 msgs (From: "Phil Barrett" <email@hidden>)

  • Prev by Date: Re: Get screen size
  • Next by Date: PB Lexical Analysis (function popup): How?
  • Previous by thread: RE: cocoa-dev digest, Vol 2 #12 - 2 msgs
  • Next by thread: Re: Setting global umask
  • Index(es):
    • Date
    • Thread