• 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
Where does umask come from?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Where does umask come from?


  • Subject: Where does umask come from?
  • From: "Phil Barrett" <email@hidden>
  • Date: Fri, 9 Nov 2001 09:06:07 -0000

Inside Mac OS X System Overview, Booting and Logging, The Login Procedure
says:
> loginwindow does the following:
> ...
> 10. Obtains the file-creation permissions mask (umask) from the user's
preferences and sets it.

But where exactly does it obtain the umask? We're about to ship a multi-user
application, and need to be able to tell users how to set their default
umask.

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
%

Thanks

Phil
--
Phil Barrett - CTO - Cambridge Animation Systems


  • Follow-Ups:
    • Re: Where does umask come from?
      • From: "e.sammer" <email@hidden>
  • Prev by Date: Re: Obj-C++ Example
  • Next by Date: Comparing keys in a dictionary
  • Previous by thread: Re: Obj-C++ Example
  • Next by thread: Re: Where does umask come from?
  • Index(es):
    • Date
    • Thread