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

Re: Where does umask come from?


  • Subject: Re: Where does umask come from?
  • From: "e.sammer" <email@hidden>
  • Date: Fri, 09 Nov 2001 17:03:31 -0500

Phil Barrett wrote:

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
%

i don't know about NeXT or NSUmask, but in the unix world, it can be set in /etc/profile /etc/login or ~/.profile ~/.cshrc. most of the time it's handled specifically by the system, so it can be in weird places. just a thought - check the FreeBSD docs and find out where they set it. on the other hand, i could be completely wrong about the whole things and it could be in NSUserDefaults somewhere....

hope this helps... good luck

(ps - please try to avoid cross posting to lists)
--
e.sammer
email@hidden


  • Follow-Ups:
    • RE: Where does umask come from?
      • From: "Phil Barrett" <email@hidden>
References: 
 >Where does umask come from? (From: "Phil Barrett" <email@hidden>)

  • Prev by Date: Drag & Drop in an NSTableView
  • Next by Date: [ANN] Mark's AddressBook 1.0b
  • Previous by thread: Where does umask come from?
  • Next by thread: RE: Where does umask come from?
  • Index(es):
    • Date
    • Thread