Where does umask come from?
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